PDA

View Full Version : pagingtoolbar : disable / enable, buttons remain gray



lv2
27 Feb 2015, 1:50 AM
Hello,

The PagingToolbar buttons (next, previous, refresh) remain gray after i disable() and enable() the grid panel.
Precision : only the active buttons remain gray.

See jpeg.

Did someone find a solution ?

It seems that "x-masked-relative x-masked " are not removed from the class.

yeghikyan
27 Feb 2015, 2:02 AM
Ext.define('overrides.Component', { override: 'Ext.Component',
initComponent: function() {
this.callParent(arguments);
this.on('enable', function(cmp) {
if (cmp.isMasked()) {
cmp.unmask();
}
})
}
});
http://www.sencha.com/forum/showthread.php?295910-5.1.0.107-setDisabled(true)-on-formpanel-doesn-t-enable-buttons

lv2
27 Feb 2015, 2:16 AM
Thanks, works for me