PDA

View Full Version : TabPanelItem: The $64K Question


TheRebelGriz
05-20-2007, 05: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!!

cbetancourt
05-20-2007, 07:45 PM
What's wrong with creating a Grid inside a GridPanel and adding it to a dialog?

d0uble_hel1x
05-20-2007, 11:08 PM
show me the $64k =P~ and i will tell you the answer