PDA

View Full Version : Hide a mask after loading datas



yegortitov
21 Dec 2009, 7:46 AM
Hi,

i show a mask while loading datas :



var idTheme = Ext.getCmp('themes').getValue();
var ptc = Ext.getCmp('pointsControle');

var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
myMask.show();
ptc.store.reload({params: {id_theme: idTheme}});


After loading the field "ptc", i would like to hide the mask "myMask". I try myMask.hide() after the line
ptc.store.reload({params: {id_theme: idTheme}}); but it does not work.

thanks for help