PDA

View Full Version : Load Mask with app.js



kanchan@rhytha.co.in
6 Sep 2012, 4:37 AM
Hi,

I'm using extjs 4 MVC and i have around more then 30 views and 20 stores in my application and all store loading when application is launched..
So it take's little bit time to load data from server as well render all views.

I want to show LoadMask until all store's loading data and all view's rendering.

Any Idea ??

tvanzoelen
6 Sep 2012, 4:48 AM
The viewport has a method setLoading, you could set that on true when loading the stores.

So create a function setLoadGlobalMask or something. When a store is loading set in on true, when none of the stores is loading, set it on false.

Put a listener on the load event of the store to know when it is finished loading.

kanchan@rhytha.co.in
7 Sep 2012, 9:58 PM
Hi tvanzoelen (http://www.sencha.com/forum/member.php?32684-tvanzoelen) ,

Thank you for reply ..

But i didn't get how to find which store is loading or application is rendering views because i have to show load mask until whole application is load.

Thank you