HTML Code:
<div id="RES_center_panel2">
<div id="RES_tab_panel1"> </div>
<div id="RES_tab_panel2"> </div>
<div id="RES_tab_panel3"> </div>
<div id="RES_tab_panel4"> </div>
</div>
Code:
RES_tabs = new Ext.TabPanel({
renderTo: 'RES_center_panel2',
tabWidth:150,
activeTab:0,
minTabWidth: 120,
enableTabScroll: true,
frame:true,
defaults:{autoHeight: true, autoWidth: true},
items:[
{contentEl:'RES_tab_panel1', id:1, title:"All", listeners: {activate: handleActivate}},
{contentEl:'RES_tab_panel2', id:2, title:"A-H", listeners: {activate: handleActivate}},
{contentEl:'RES_tab_panel3', id:3, title:"I-R", listeners: {activate: handleActivate}},
{contentEl:'RES_tab_panel4', id:4, title: "S-Z", listeners: {activate: handleActivate}}
]
});
The Tab will be displayed in a Popup window, The Data for the tab will be filter based on the title value(Working fine).
When i open the window for the first time , "All" tab is selected on first time .
and Let us assume ,myself selected "A-H" tab now, and close the window.
When i open the window again, "A-H" tab is selected by default.
How to make "All" tab selected all the time when i open the window?
Would you please help me