PDA

View Full Version : Executing few statements after 2 components are loaded.



sanjayon19
10 Feb 2014, 5:19 AM
Hi All,

I have a Grid and Tree. I want to execute some statements only after both of these Grid and Tree loaded. If either grid or tree is not yet loaded, i have to wait till it gets loaded and then execute the statements.

Tree and grid are getting loaded 1 after the other and it may take some time as the data is huge.

As of now I'm using "load" event to check whether the component is loaded. But how do i make sure both grid and tree are loaded and then execute few statements.?

Please suggest.

Thanks & Regards
Sanjay.S

mitchellsimoens
12 Feb 2014, 8:13 AM
When you say loaded do you mean the stores are loaded? Each store will fire a load event when they have loaded.

sanjayon19
19 Feb 2014, 2:13 AM
Yes, I want to know when the load is completed.
Thanks a lot for your suggestion.

It helped me :)