PDA

View Full Version : GroupTabPanel Add/Remove Tabs and Tab Groups



crpatrick
11 Nov 2009, 12:24 PM
Hi all-

I was wondering if it was at all possible to add or remove groups or tabs from the GroupTabPanel user control? I have been trying the standard TabPanel functions (.add(), .removeAll(), etc.) which do not work, and I was wondering if anyone else has tried to modify an existing GroupTabPanel once it has been rendered?

I am trying to implement a GroupTabPanel, and once the groups/tabs initial configuration is setup, certain user actions will cause certain tabs to be removed or added...and certain groups may be removed or added.

Thanks for any direction on this.

Talk soon
Chris

vishalk
27 Jan 2010, 7:14 AM
Hi,

how can I dynamically add/remove group tabs from a grouptabpanel. I am more interested in adding the grouptabs thru some javascript method.


grpTabs = new Ext.Panel({
renderTo: 'searchResults',
deferredRenderer:false,
activeTab: 0,
items:[{
xtype: 'grouptabpanel',
tabWidth: 130,
activeGroup: 0,
items: [{
items:grid
}]

}]
});

I want to add more such group tabs:

grpTabs.addGroupTab(grid2)
grpTabs.addGroupTab(grid3)

-------------------

my grid object is somewhat like this:


var grid = new Ext.grid.GridPanel({
store: results,
columns:headers,
title: GroupTabLabel,
store: results,
})
});

my grouptabs don't have tabs.

thanks,
vishal