Jump to content

Recommended Posts

  • Replies 95
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi All!    PageSize Extension for UniDBGrid:     How to use?   1. Download the file from here https://github.com/loiane/extjs4-ux-paging-toolbar-resizer/blob/master/ux/PagingToolbarResizer.js

Replace:    sender.pagingBar.hide();     sender.pagingBar.border = "0 none";        sender.pagingBar.destroy(); With  sender.removeDocked(sender.pagingBar, true);

Example the latest version uniGui. Serverside its worked. https://github.com/marlonnardi/extjs-ux-paging-toolbar-resizer/blob/master/ux/PagingToolbarResizer.js   function beforerender(sen

Posted Images

  • 3 weeks later...
  • 4 weeks later...
  • 2 weeks later...

Try this approach:

1. Remove beforender fn.

function beforerender(sender, eOpts)
{
  /*if (sender.pagingBar) {
    sender.removeDocked(sender.pagingBar, true);
    sender.addDocked({
        dock: 'bottom',
        items: [Ext.create('Ext.PagingToolbar', {
            pageSize: sender.store.pageSize,
            store: sender.store,
            displayInfo: true,
            displayMsg: 'Visualizando {0} - {1} de <b>{2}</b>',
            emptyMsg: "Não há registros",
            plugins: Ext.create('Ext.ux.PagingToolbarResizer', {
                displayText: 'Registros por página',
                options: [25, 50, 100, 150, 200]
            })
        })]
    });
  }*/
}

2. pagingBar.beforeInit

function pagingBar.beforeInit(sender, config)
{
    config.plugins = Ext.create('Ext.ux.PagingToolbarResizer', {
        displayText: 'Registros por página',
        options: [25, 50, 100, 150, 200]
    });
}

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...