Results 1 to 2 of 2

Thread: PageSize plugin for Paging Toolbar cannot work

  1. #1
    Sencha Premium Member
    Join Date
    May 2013
    Posts
    48
    Answers
    1

    Default PageSize plugin for Paging Toolbar cannot work

    I use a PageSize plugin for Paging Toolbar to change grid's pageSize dynamically.
    I'm using the plugin code below:

    01.png

    http://www.elvishsu66.com/2011/05/pa...olbar-for.html


    I plug it to my bbar as


    Code:
                bbar: {
                    xtype: 'pagingtoolbar',
                    store: me.store,
                    displayInfo: true,
                    displayMsg: this.displayText,
                    plugins: new Ext.ux.grid.PageSize(),    
                        listeners: {
                               afterrender : function() {
                                       this.child('#refresh').hide();
                        }
                    }                
                }

    The bbar's info can be refreshed by pageSize combobox but the grid doesn't be refreshed, the grid's data will not be changed when the pagesize combobox changes.
    I think that the function
    Code:
    onPageSizeChanged
    in plugin code doesn't work. Does anyone know what's wrong?


    Code:
        /**
        * refresh the page when the value is changed
        */
        onPageSizeChanged: function(combo) {
            this.store.pageSize = parseInt(combo.getRawValue(), 10);
            this.doRefresh();
        }

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Hopefully someone has been down this road and will share, but you might also want to check with the author of the plugin.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •