Mar 01, 2015, 6:40 PM
[CLOSED] ExtJs How to gridpanel dynamic column add clone component ?
if (findColumnModel.length > 0) {
var c = Ext.clone(findColumnModel[0]); //BooleanColumn clone
com.headerCt.insert(com.columns.length, c); //Uncaught TypeError: undefined is not a function !
} else {
var column = Ext.create('Ext.grid.column.Column', { toolColType: 'dynamic', dataIndex: record[strColNameDataIndex], text: record[strColNameText], flex: 1 });
com.headerCt.insert(com.columns.length, column);
}
error: Uncaught TypeError: undefined is not a function !
Last edited by Daniil; Mar 04, 2015 at 3:39 PM.
Reason: [CLOSED]