Extjs在ColumnModel下使用CheckboxSelectionModel,多选失效,只能单选

最近开始使用Extjs进行开发, 会遇到一些各种各样的问题, 在此希望记录下来, 给和我一样新入手人一点提示.

问题: 在ColumnModel下添加复选框, 添加完成之后, 此复选框只能单选, 没办法同时选中多个选项.

前期代码如下:

this.colModel = new Ext.grid.ColumnModel({
            columns : [this.rowNum                 
            ,
            new Ext.grid.CheckboxSelectionModel(),
                {
                dataIndex : 'ID',
                singleSelect : false
            }
}

this.aGrid = new Ext.grid.EditorGridPanel(
                {
                    id : 'aGrid',
                    title : 'Category Definition',
                    region : 'center',
                    height : 250,
                    autoScroll : true,
                    store : this.aStore,
                    selModel : new Ext.grid.CheckboxSelectionModel({
                        singleSelect : false}),
                    colModel : this.aGrid,
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值