Ext4隐藏pagingtoolbar中的刷新按钮方法
var panel = new Ext.panel.Panel({
? ? dockedItems: [{
? ? ? ? ? ?xtype: 'pagingtoolbar',
? ? ? ? ? ?store: store, ? // same store GridPanel is using
? ? ? ? ? ?dock: 'bottom',
? ? ? ? ? ?displayInfo: true
? ? ? ?}]
});
var length = panel.dockedItems.keys.length;
var refreshStr= "";
for (var i = 0; i < length; i++) {
?? if (panel.dockedItems.keys[i].indexOf("pagingtoolbar") !== -1) {
????? refreshStr= panel.dockedItems.keys[i];
?? }
}
panel.dockedItems.get(refreshStr).child('#refresh').hide(true);