1. #1
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    171
    Vote Rating
    41
    loiane has a spectacular aura about loiane has a spectacular aura about loiane has a spectacular aura about

      1  

    Post Ext.ux.PagingToolbarResizer

    Ext.ux.PagingToolbarResizer


    Hi,

    I ported a plugin which adds a combobox to the pagingtoolbar and the user can choose how many records he/she wants to see. It dynamically chances the pageSize config option of the pagingtoolbar.

    Please let me know if anyone find any issues: https://github.com/loiane/extjs4-ux-...oolbar-resizer
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2008
    Location
    Raleigh, NC
    Posts
    130
    Vote Rating
    2
    qooleot is on a distinguished road

      0  

    Default


    Hey nice plugin. One bug is that it doesn't work with a grid reconfigure. Instead of storing the grid's store at init I changed it to this:

    Code:
    listeners: {
            select: function(combo, value, i){
                    var gridStore = combo.up('pagingtoolbar').store;
                    gridStore.pageSize = value[0].data.field1;
                    gridStore.load();
            }
          }