Hello,
I want to add a new column to a grid dynamically, as is done?
greetings and thanks ....![]()
Hello,
I want to add a new column to a grid dynamically, as is done?
greetings and thanks ....![]()
You will want to do something like this.
Code:this.getColumnModel().config.push(new Ext.grid.Column({ id: Ext.id(), dataIndex: 'myNewColumnDataIndex', header: 'My New Column', renderer: function(val, metadata, record, rowInd, colInd, store){}//provides a way of manipulating data that is going into your column }));
This covers it pretty well...
http://www.sencha.com/forum/showthre...ds-and-columns