PDA

View Full Version : add GroupTab on Ext.ux.GroupTabPanel



crazy44
8 Feb 2010, 9:36 AM
Hi,

I have a problem to add group to GroupTabPanel.

This code works :




var viewport = new Ext.Viewport({
layout:'fit',
items:[
new Ext.ux.GroupTabPanel({
id:'tabPanelGlobal',
tabWidth :130,
activeGroup :0,
items:[
new Ext.ux.GroupTab({//niveau intermédiaire uniquzement technique
mainItem: 0,
title :'volet1',
items:[
new Ext.Panel({
title :'volet1',
html:'Hello'
})
]
})

]
})
]
})
;



but this next one didn't (I tried to add object by add() function)

I have the error this.strip is undefined on the line :
grouptabpanel.add(group1);




Ext.onReady(function(){
var panel1 = new Ext.Panel({
html:'Hello'
});
var group1=new Ext.ux.GroupTab({
title :'volet1',
});
var grouptabpanel1 = new Ext.ux.GroupTabPanel({
id:'tabPanelGlobal',
tabWidth :130,
activeGroup :0
});
var viewport = new Ext.Viewport({
id:'view'
});
group1.add(panel1);
grouptabpanel1.add(group1);
viewport.add(grouptabpanel1);
})


Do you have an idea ?

Thanks

crazy44
9 Feb 2010, 8:14 AM
It missed half of the post, I correct it :/