-
2 Oct 2012 6:14 AM #1
Loading..Mask
Loading..Mask
Hi,
I have 10 components(pop-up with grid,combo..etc) in side a panel . The store of all the components are coming from Data Base. I want a 'Loading...Mask' on the hole panel until all the components properly populated.So how i will apply a mask with Loading..message until all the components properly populated.
help please.
Thanks,
chandan
-
2 Oct 2012 7:28 AM #2
Hi Chandan,
Try this:
Adding a page loading mask when application begins:
http://edspencer.net/2009/02/adding-...our-extjs.html
I've used this successfully with V4 code.
Steve
-
2 Oct 2012 4:09 PM #3
You can also try Panel's setLoading method.
-
3 Oct 2012 8:29 AM #4
-
4 Oct 2012 2:16 PM #5
Sorry, don't have code I can show you.
I was suggesting to do setLoading(true), kick off all the store loads but keep track of them so you know when they're all done loading, then do setLoading(false) when all stores are done loading.
-
11 Oct 2012 3:07 AM #6
Chandan,
I believe all the stores haveYou can useCode:proxy : { type : 'ajax', url :Code:var loadMask = new Ext.LoadMask(Ext.getBody(), { msg: ' ' }); Ext.Ajax.on('beforerequest',function(){ loadMask.show(); }); Ext.Ajax.on('requestcomplete',function(){ loadMask.hide(); }); Ext.Ajax.on('requestexception', function(){ loadMask.hide(); });Thanks,
Ronz
-
12 Oct 2012 11:30 AM #7


Reply With Quote
