2013-01-22 46 views
2

我正在使用Ext.toolbar.Paging用於網格面板。當調整大小面板溢出菜單出現在分頁欄上。但是總數顯示不正確。請檢查我的分頁欄。Extjs 4.1頁面欄(Ext.toolbar.Paging)溢出問題

pageSizingCombo是使用用於改變尋呼大小的組合框定義的對象:無溢出菜單

Ext.create('Ext.toolbar.Paging',{ 
       store:store, 
       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 
      }) 

尋呼巴。

enter image description here

溢出菜單欄分頁

when overflowing total count is incorrect it is displayed as "no record found"

它顯示 「沒有記錄發現」。有沒有解決這個問題的方法。

回答

2

從我能發現問題的地方在於添加到分頁工具欄中的tbtext組件:http://docs.sencha.com/ext-js/4-1/source/Paging.html#Ext-toolbar-Paging-method-initComponent。爲了解決這個問題,你可以關掉displayInfo設置爲false:

displayInfo: false 

,然後調整您的項目配置爲:

items:[{ 
     xtype : 'pageSizingCombo', 
     pageSizes : [10,20,25,50,75,100], 
     width : 50 
     }, 
     '->', 
     { 
     xtype: 'text', 
     itemId: 'displayItem' 
     }] 

請注意,如果您更改值,這將不起作用itemId用於文本組件。換句話說,它總是必須是'displayItem'。

+0

感謝您的幫助。現在它的工作。 – jeewiya