Hello, I have a problem with show card after close tab. My code is below. When I firstly select item I have a grid in my tabpanel with card on top. But when I close and select item once again I have only grid but card is not visible. Any suggestions? How can I show my active card?
Code:
var addTab = function (tabPanel, mygrid) {
var tab = tabPanel.getComponent(mygrid);
var mytabbar = tabPanel.getTabBar();
if (!tab) {
tab = tabPanel.add(mygrid);
}
tabPanel.setActiveTab(tab);
mygrid.store.load();
}
//use after item from tree panel is select
var mycmp = Ext.getCmp(komponent);
var T = Ext.getCmp('tablist');
addTab(T,mycmp);