Perhaps use constructor
instead?
ConsolidationScheduleGridUi = Ext.extend(Ext.grid.GridPanel, {
title: 'Consolidation Schedules',
store: 'consolidationschedulestore',
constructor: function(cfg) {
cfg = Ext.applyIf(cfg || {}, {
viewConfig: {
forceFit: true
},
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'dummycolumn',
header: 'BlankCol',
sortable: true,
width: 300,
hideable: false
}
]
});
ConsolidationScheduleGridUi.superclass.constructor.call(this, cfg);
}
});
That way any columns specified in the cfg
object will take precedence, and if you don't define any the default column will be used instead.