PDA

View Full Version : Avoiding tabs switching while loading data



Francesco
24 Aug 2009, 10:28 PM
Hi all,
I have a tabPanel with some tabs.
A tab loads some data via autoLoad.
What I need to do is to avoid tabs switching till data loading completes.
Any advice about how to achieve that?

Thanks in advance
Regards

Lukman
25 Aug 2009, 5:14 AM
Mask the tabpanel using Ext.LoadMask just before the data loading and unmask it afterwards.

Francesco
25 Aug 2009, 5:48 AM
Mask the tabpanel using Ext.LoadMask just before the data loading and unmask it afterwards.

Ok thanks, this can be accettable.
I've put masking on listeners for activate and unmask via callback in autoLoad.
Is there a smarter way to obtain the same?

Thanks again
Regards