PDA

View Full Version : Asynchronous Tab loading?



billtricarico
28 Mar 2012, 10:22 AM
Hello,

I have a TabPanel with multiple tabs, each tab having its own model and store. I would like to launch all these tabs in an asynchronous manner, so they all show up and start loading their respective data independent of each other. The default behavior seems to be: nothing renders until all stores have loaded and then all the tabs appear at one time.

Thanks.

mitchellsimoens
28 Mar 2012, 10:29 AM
If you want all tabs to render when the tab panel is rendered then set deferredRender to false on the tab panel.

billtricarico
29 Mar 2012, 9:38 AM
Actually I want each tab to launch separately and not freeze the app while it is loading. Basically I just see a blank screen for a few seconds (as the stores are loading). Then all of a sudden all the tab appear with the data.

So I guess adding each tab to the TabPanel in Designer is not the way to do this. I have to manually load each tab in the controller. However, I want to make sure each tab maintains the same position each time the app loads.

What is the best way to accomplish this?