PDA

View Full Version : Mask grid toolbar also



daly
31 Oct 2013, 1:38 AM
Is there a way to mask not only grid view but toolbar also?
I try in this way but it doesn't work(


initComponent : function() {
var config = {
viewConfig : {
loadMask : {
useTargetEl : true,
targetEl : this.getEl()
}
}
};
Ext.apply(this, config);
this.callParent();
}

I guess that on instantiating phase grid element has not yet been created.
How can I reassign (redefine) mask element in afterrender event?

Gary Schlosberg
4 Nov 2013, 6:45 PM
The toolbar is included in the mask in this example I threw together. Are you seeing otherwise?
https://fiddle.sencha.com/#fiddle/1c6

daly
4 Nov 2013, 8:37 PM
Thank you for reply.
grid.setLoading() works correctly. But why when I try use store.load() method it doesn't mask grid toolbar?
https://fiddle.sencha.com/#fiddle/1cd
It looks so
46697