无法使用Ext.grid.CheckColumn Extjs版本2.2在网格中显示复选框
当我尝试使用下面的代码向网格添加检查列时无法使用Ext.grid.CheckColumn Extjs版本2.2在网格中显示复选框,extjs,extjs-grid,extjs2,Extjs,Extjs Grid,Extjs2,当我尝试使用下面的代码向网格添加检查列时 this.entitlementColModel = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), { header : 'CIF', dataIndex : 'cif', width : 80, editor : new Ext.form.TextField({ maxLength : 2
this.entitlementColModel = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), {
header : 'CIF',
dataIndex : 'cif',
width : 80,
editor : new Ext.form.TextField({
maxLength : 20,
allowBlank : false
}),
editable : true
}, new Ext.grid.CheckColumn({
header: 'AML',
dataIndex: 'amlActive',
resizable:false,
width: 25,
onMouseDown : function(e, t){}
})]);
获取以下错误
Uncaught TypeError: Ext.grid.CheckColumn is not a constructor
还尝试了xtype:'checkcolumn',
它也不起作用。我当前无法升级ext版本。版本2.2中是否有此方法的替代品?使用操作列
{
xtype:“检查列”,
文本:“活动”,
数据索引:“活动”
}您可以参考此链接。