PDA

View Full Version : Loading Process with a Loading Mask ! ??



agustincba
18 Sep 2011, 10:14 AM
Hi to all from Cordoba Argentina !. Cheers !. My question is the following one... Considering this code...



var loadMask = new Ext.LoadMask(gridPanel,{
msg:"Please wait...",
removeMask (http://dev.sencha.com/deploy/ext-3.3.1/docs/source/LoadMask.html#cfg-Ext.LoadMask-removeMask): true,
store: storeFinal
});
loadMask.show();

My idea is to display a load mask during the loading process but the problem is that the mask doesn't dissapear !... It keeps saying: "Please wait..." !... Does anybody know why ?... Thankx !... Wouldn't be a logic thing to put in the load event from the store...
grid.el.unmask() ???...

wattyf
27 Sep 2011, 3:27 AM
When your data is returned to the grid panel, you must call

loadMask.hide();
to disable the loading mask