-
28 Jul 2008 2:32 AM #1
About the tabpanel and grid question
About the tabpanel and grid question
Dear all,
I create a tabpanel A, render grid B create tabpanel C, render grid D.
I open tabpanel A and tabpanel B, if I close tabpanel B, the tabpanel A become blank, the grid B disappeared.
who can tell me what's wrong with me?
thanks!
-
28 Jul 2008 3:19 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
please post code!

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
28 Jul 2008 3:44 AM #3
Why are you rendering? Don't you read documentation?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
28 Jul 2008 4:06 AM #4
The code like this:
PHP Code:Ext.ux.showgrid = Ext.extend(Ext.grid.EditorGridPanel, {
layout:'fit'
,id:'showgird'
,border:false
,stateful:false
,initComponent:function(){
this.viewConfig = {forceFit: true};
Ext.apply(this,{
sm:new Ext.grid.CheckboxSelectionModel()
});
Ext.ux.showgrid.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg(B,Ext.ux.showgrid);
Ext.reg(D,Ext.ux.showgrid);
this.add({
id: 'tab-A',
title: 'tabpanelA',
closable: true,
items:[{xtype:B}]
}).show();
this.add({
id: 'tab-C',
title: 'tabpanelC',
closable: true,
items:[{xtype:D}]
}).show();
-
28 Jul 2008 4:28 AM #5
DO NOT ADD A WRAPPER ROUND THE COMPONENT THAT YOU ARE ADDING!
JUST ADD THE COMPONENT!
Also, your code doesn't get to show the child items of a TabPanel.
You ask the TabPanel to do that using setActiveTabSearch the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
28 Jul 2008 4:34 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
Welcome back sir


Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
28 Jul 2008 4:36 AM #7
Perhaps I should hve come back under another username. Would you be able to tell I was back?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
28 Jul 2008 4:51 AM #8
-
28 Jul 2008 9:53 AM #9Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.


Reply With Quote