Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
tabs in tabpanel
tabs in tabpanel
Hi.
I have an issue regarding the tabPanel and the child.
I have a tabPanel with some tabs inside. Each tab has a grid on it.
The firts tab it's displayed ok but the others are not.
The load it's like this.
I render the tabPanel.
After that the user enter some criteri into a textfiled outside the tabPanel and after that I reload the stores from each grid from tabPanel to display the data.
the data it's loading ok but the other panels except the firts one don't want do make the layout.
I put also:
deferredRender: false, forceLayout: true,
{%jid%}tabsPanel = new Ext.TabPanel({
resizeTabs: true,
enableTabScroll: true,
minTabWidth: 115,
tabWidth:135,
activeTab:0,
autoDestroy: true,
margins:'0 0 0 0',
height: panelHeight - (Ext.isIE6 ? 105 : 107),
bodyStyle: 'padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px;',
deferredRender: false, forceLayout: true,
plain: false,
items:
[
{ title: 'tab1',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
items: [ THE GRID HERE ] },
{ title: 'tab2',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
items: [ THE GRID HERE ] },
{ title: 'tab3',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
items: [ THE GRID HERE ] },
{ title: 'tab4',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
items: [ THE GRID HERE ] }
] });
Please help on this one with a clean and nice solution.
Thank you.
Sencha User
hi...try this
tabsPanel = new Ext.TabPanel({
resizeTabs: true,
enableTabScroll: true,
minTabWidth: 115,
tabWidth:135,
activeTab:0,
autoDestroy: true,
margins:'0 0 0 0',
height: panelHeight - (Ext.isIE6 ? 105 : 107),
bodyStyle: 'padding-top: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px;',
deferredRender: false, forceLayout: true,
plain: false,
items:
[
{ title: 'tab1',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
html:'<div id="myFirstGrid"></div>'
{ title: 'tab2',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
html:'<div id="mySecondGrid"></div>'
{ title: 'tab3',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
html:'<div id="myThirdGrid"></div>'
},
{ title: 'tab4',
defaultType: 'textfield',
deferredRender: false, forceLayout: true,
html:'<div id="myFourthGrid"></div>'
] });
var grid1 = new Ext.grid.GridPanel({
renderTo: 'myFirstGrid',
//your grid content
});
var grid2 = new Ext.grid.GridPanel({
renderTo: 'mySecondGrid',
//your grid content
});
var grid3 = new Ext.grid.GridPanel({
renderTo: 'myThirdGrid',
//your grid content
});
var grid4 = new Ext.gridGridPanel({
renderTo: 'myFourthGrid',
//your grid content
});
Similar Threads
By ShatyUT in forum Ext 3.x: Help & Discussion
Replies: 1
Last Post: 17 Nov 2010, 7:55 PM
By Seana in forum Ext 3.x: Bugs
Replies: 3
Last Post: 19 Oct 2010, 6:31 AM
By developer-si in forum Ext 3.x: Help & Discussion
Replies: 1
Last Post: 15 Jul 2009, 8:16 AM
By illuminum in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 20 Jun 2008, 4:00 PM
By cmizelle in forum Ext 2.x: Help & Discussion
Replies: 8
Last Post: 1 May 2008, 7:32 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us