I have a setup where the tab is expected to be loaded based on user selection of an item from a left panel tree. My objective is to load only the relevant items as per the user selection to a particular tab.
The first time, I am able to add item as below:
var tab = tabs1.getItem('Orders');
tab.remove(0);
tab.add(pane33);
tab.doLayout();
But, when the user selects the item again, the panel item is already removed, and errors out as (c.getPositionEl().dom is undefined
).
The error is due to the item being removed or destroyed. There seems no option to replace the tab item, or to refresh/reload panels.
How to handle this?
Thanks.