PDA

View Full Version : create viewport after loading ALL stores



muselmanach
15 Sep 2013, 3:32 AM
Is there an easy way to create the viewport after all my stores have been loaded completely?
I have about 8 different stores all have the autoload option true.
Now i need a way to show the viewport after all of these stores haven been finished loading their data.

How would you do this?

thx
muselmanach

vela1606
15 Sep 2013, 8:27 AM
Who good are you with ExtJs?
What you are doing probably is not the preferred way to do it.

But to answer your question, you can use a 'load' listener at one of your stores. more info (http://localhost/gaiaehr/lib/extjs-4.1.1a/docs/index.html#!/api/Ext.data.Store-event-load)

muselmanach
15 Sep 2013, 10:46 PM
thx

i was using kind of this solution

http://stackoverflow.com/questions/11003605/how-to-wait-until-all-stores-are-loaded-in-extjs

vela1606
16 Sep 2013, 2:57 AM
The one with the check-mark should work fine.