0

当我尝试使用以下代码将检查列添加到网格时

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 版中是否有任何替代方法?

4

1 回答 1

1

使用操作列 { xtype: 'checkcolumn', text: 'Active', dataIndex: 'active' }

于 2018-01-23T17:47:06.497 回答