mhuibers
23 Mar 2007, 6:45 AM
Quick question here:
I created a tabPanel with two tabs:
var tabs = new Ext.TabPanel('tabs1');
tabs.addTab('persons', 'Persons','<div id="persongridcontainer"></div>');
tabs.addTab('documents', 'Documents','<div id="documentgridcontainer"></div>');
tabs.activate('persons');
The content I pass in are divs which are used by the createGrids function.
The output is a nice two tabs tabpanel with a nice grid in the first tab content area. However when I click the second tab it only displays a white area (so no grid) sized to fit the grid that should be visible.
Changing this line of code:
tabs.activate('persons');
to:
tabs.activate('documents');
results in a white area (no grid) on the first tab and a nice grid on the second tab.
So is there something that i'm missing here?
Cheers,
Michiel
I created a tabPanel with two tabs:
var tabs = new Ext.TabPanel('tabs1');
tabs.addTab('persons', 'Persons','<div id="persongridcontainer"></div>');
tabs.addTab('documents', 'Documents','<div id="documentgridcontainer"></div>');
tabs.activate('persons');
The content I pass in are divs which are used by the createGrids function.
The output is a nice two tabs tabpanel with a nice grid in the first tab content area. However when I click the second tab it only displays a white area (so no grid) sized to fit the grid that should be visible.
Changing this line of code:
tabs.activate('persons');
to:
tabs.activate('documents');
results in a white area (no grid) on the first tab and a nice grid on the second tab.
So is there something that i'm missing here?
Cheers,
Michiel