I have a tab set that is loaded for an application. I want to "prelaod" all of the tabs contents as seperate panes and then call tabSet.addTab with the pane set to the ID of an existing widget. This works fine on the first load, but after the tab is closed, adding the same tab with the same widgetId as previous load results in an empty tab.
I suppose this because the pane is automatically destroyed when the tab is closed. I know I could use oncloseclick on the tabset and use tabSet.updateTab(null) to work around this, but then I'd have to have some huge if statement on the closeclick method. Instead, is there a way to specify on the tab, or override a method on the tab to NOT destroy the pane when the tab is closed?
I suppose this because the pane is automatically destroyed when the tab is closed. I know I could use oncloseclick on the tabset and use tabSet.updateTab(null) to work around this, but then I'd have to have some huge if statement on the closeclick method. Instead, is there a way to specify on the tab, or override a method on the tab to NOT destroy the pane when the tab is closed?
Comment