1. #1
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    181
    Vote Rating
    51
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      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
    145
    Vote Rating
    5
    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();
            }
          }

  3. #3
    Sencha Premium Member khebrela's Avatar
    Join Date
    Jun 2011
    Location
    Tbilisi, Georgia
    Posts
    18
    Vote Rating
    0
    khebrela is on a distinguished road

      0  

    Default


    Hi, I have used one of paging toolbar plugins and its seems that plugin throws some errors in firefox while perfectly working in chrome and IE
    error
    PHP Code:
    TypeErrorExt.FocusManager is undefined if (!me.focusListenerAdded && (!needsTabIndex || Ext.FocusManager.enabled)) 
    {
    TypeErrorExt.data.Request is not a constructor
    proxy
    meTypeErrorExt.data.Request is not a constructor}; 
    paging toolbar
    PHP Code:
    {         xtype'pagingtoolbar',         storestore,         dock'bottom',         displayInfotrue,         plugins: [new Ext.create('Ext.ux.PagingToolbarResizer',{             options : [ 10,25,50,100,200,500,1000 ]         })         ]     } 
    KEEP MOVING FORWARD

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

      0  

    Default


    Hey on the latest 4.2.2 release, and latest firefox its not throwing any errors for me. You might want to create a full Sencha Fiddle example, with firefox version, and extjs version. As this isn't an official plugin, that might help others in the community advise you more efficiently.

Thread Participants: 2

Tags for this Thread