PDA

View Full Version : How to get reference to Ext.grid.Column object



paulyb263
7 Jan 2010, 8:46 AM
Hello all, I am struggling to find a solution here, its probably something really simple I am missing but I have searched the API's and come up blank..

My code is simply:



var newColumnObject = new Ext.grid.Column({
xtype: 'gridcolumn'
, id: 'newColumnObject'
, header: 'Some Header'
, dataIndex: 'someDataIndex'
});
var obj = Ext.getCmp('newColumnObject');
console.log(obj)


But I am getting an null reference in obj

Any ideas why this is so?