TheRebelGriz
20 May 2007, 2:19 PM
If one has defined a Grid, a TabPanel and a TabPanelItem, How can one add a Grid to the TabPanelItem?
The Following is the code base for this scenario:
var grid = new Ext.grid.Grid('attributes-grid'
, { ds: ds
, cm: cm
, selModel: new Ext.grid.RowSelectionModel({singleSelect: true})
, enableColLock: false
}
);
grid.render();
var appTabs = new Ext.TabPanel('app-tabs', { resizeTabs: true, minTabWidth: 20, preferredTabWidth:150 });
var attrTab = appTabs.addTab( 'attrTab', 'Attributes', null, true );
attrTab.activate();
Given the above, How can one add the grid to the attrTab?
Any assistance is greatly appreciated!!!
Thanks in Advance!!
The Following is the code base for this scenario:
var grid = new Ext.grid.Grid('attributes-grid'
, { ds: ds
, cm: cm
, selModel: new Ext.grid.RowSelectionModel({singleSelect: true})
, enableColLock: false
}
);
grid.render();
var appTabs = new Ext.TabPanel('app-tabs', { resizeTabs: true, minTabWidth: 20, preferredTabWidth:150 });
var attrTab = appTabs.addTab( 'attrTab', 'Attributes', null, true );
attrTab.activate();
Given the above, How can one add the grid to the attrTab?
Any assistance is greatly appreciated!!!
Thanks in Advance!!