PDA

View Full Version : Tab Panel is not working true



nigde51
16 Dec 2013, 12:39 AM
Hello people,

First i have a panel with toolbar which have buttons. And with button handler i want to add this panel tabs. i make this like below:


bbar: [{
xtype: 'button',
handler: function () {
var content2 = Ext.getCmp('tabpanelid');
content2.add({
id:'tabs',
title: 'Yeni',
closable:true,
autoheight:true,
layoutOnTabChange: true,
activeTab:0,
items:kapatilmisKayitTutarChart })
}

tab is occured. another button make this,and another...
But tab is not active. And above all if i click any tab,another one is clear itself. or another problem is, when a tab was occured, tab panel show this tab but if i cilick it it is not open.

how can i use tab panel successful?

Note: Sorry for my english.

Thanks.

scottmartin
17 Dec 2013, 5:48 AM
You should not assign the 'id' to the tab. Each tab is getting the same id.