View Full Version : How to destroy inactive tab content?

31 Oct 2011, 6:02 AM
My app has three main tabs that are not closeable. When a user switches between tabs, I'd like to destroy all the content in the newly-hidden tab to minimize memory usage. What's the best way to do this such that when the tab is re-activated it will re-render itself?


31 Oct 2011, 7:26 AM
I use the deactivate event to destroy the items in the tab that gets deactivated. I then use the activate event to add the items. I usually use a method called buildItems to return the items I want to add for the activate event.

6 Aug 2012, 3:40 AM
Can you please give a code sample :-/

6 Aug 2012, 5:41 AM
It is deactivate or deselect event ? There is no deselect event in tabpanel !!