Results 1 to 3 of 3

Thread: Extjs 4.1 Paging bar (Ext.toolbar.Paging) overflow issue

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    srilanka
    Posts
    18

    Default Extjs 4.1 Paging bar (Ext.toolbar.Paging) overflow issue

    I am using Ext.toolbar.Paging for a grid panel. When resizing the panel the overflow menu appears on the paging bar. But total count is not displayed correctly. Please check my paging bar.

    pageSizingCombo is a defined object using a combobox for change paging size:


    Ext.create('Ext.toolbar.Paging',{ storetore, dock : 'bottom', itemId:'paging-bar-view-panel', displayMsg: '{0} - {1} of {2}', items:{ xtype : 'pageSizingCombo', pageSizes : [10,20,25,50,75,100], width : 50 }, displayInfo: true, enableOverflow: true })
    Paging bar without overflow menu.



    paging-bar-without-overflow.png


    Paging bar with overflow menu



    paging-bar-overflow-info-text.png


    It's showing "no records found". Is there are any solution for this issue.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    You could extend the paging toolbar and do this within the onLoad method.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    srilanka
    Posts
    18

    Default

    This issues appear when resize the paging bar, but onLoad method call after the store loaded.

    There is a some thing i noticed, if we can change display info item's xtype to button or text its working. I think there is a issues on tbtext item when menu overflow. I have found some solution for this but its not a proper way.

    Code:
    Ext.create('Ext.toolbar.Paging',{
    store : myStore, dock : 'bottom', itemId : 'paging-bar-view-panel', displayMsg : '{0} - {1} of {2}', displayInfo : false, // display info item will not be added from initComponent method enableOverflow : true, items : [
    {xtype:'pageSizingCombo',pageSizes : [10,20,25,50,75,100]}, ,'->', {xtype : 'text',itemId : 'displayItem'} // itemId similar to display info item. Then this item will updated when store load.
    ]
    });


Tags for this Thread

Posting Permissions

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