PDA

View Full Version : Can I remove the refresh button in pagginToolbar?



rmorales
27 Jan 2012, 11:43 AM
Hello Friends.

I do not want to use the refresh button in paggin Toolbar, how can I remove it?

friend
30 Jan 2012, 6:03 AM
In the afterrender event of the pagingtoolbar, you can hide the refresh button/icon.



{
xtype: 'pagingtoolbar',
dock: 'bottom',
store: 'SomeStore',
displayInfo: true,
listeners: {
afterrender: function(component, eOpts) {
component.down('#refresh').hide();
component.items.get(9).hide(); // hide tbseparator to left of refresh button/icon.
}
}
}

rmorales
30 Jan 2012, 9:14 AM
Thanks a lot for your fast answer. It solved my problem.