0

我有一个使用 CheckBoxSelectionModel 作为其选择模型的网格,并且网格中还有一个 Ext.ux.CheckColumn。如果我选择一行(选中选择模型上的框),然后单击所选行的 CheckColumn 中的复选框,它将取消该行。

我寻找一个听众来覆盖,但是,我没有看到一个。有没有其他人看到过这种行为,我该如何解决?

Ext.require(['Ext.ux.CheckColumn', .....]);

Ext.create('Ext.panel.Grid', {
    .....,
    selModel: Ext.create('Ext.selection.CheckboxModel', {}),
    columns:[
        {text: 'Name', dataIndex: 'name'},
        ......,
        {xtype: 'checkcolumn', name: 'Can Edit', dataIndex: 'canEdit'}
    ],
    store: userStore
});
4

1 回答 1

2

将“stopSelection”属性添加到您的检查列:

{xtype: 'checkcolumn', name: 'Can Edit', dataIndex: 'canEdit', stopSelection: false}

见:http: //jsfiddle.net/XRmaV/

于 2013-08-09T12:50:14.620 回答