PDA

View Full Version : Can I create object of "Ext.grid.header.Container" outside?



extjs.mscit
23 Jul 2013, 8:29 AM
I want to create object of "Ext.grid.header.Container" first and will do some operation on it and then want to assign it to GridPanel.

Can I create?



columns=[{
text:'Name',
dataIndex:'name',
sortable:false,
hideable:false,
flex:1},{
text:'Email',
dataIndex:'email',
hidden:true},{
text:'Phone',
dataIndex:'phone',
width:100}
];

var headerCt = new Ext.grid.header.Container(columns);


But, headerCt does not contain any object of header.

Help.

slemmon
25 Jul 2013, 9:39 AM
The header container for the grid isn't really set up to be instantiated outside of the grid, though it may be possible - you'd want to review the source to ensure that you're docking the header container correctly and that it participates in the horizontal scrolling of the grid columns.

Ultimately what are you trying to do?