如何禁用网格的checkboxmodel的行选择保持先前选择完整的extjs

时间:2012-11-16 21:14:07

标签: extjs grid

锁定网格模型后,我无法继续选择。我的代码如下。

var sm = Ext.getCmp('loadFrameStateInfoTable').getSelectionModel(); // This select the rows which I want to
var stateStore = sm.store;
for (var ct in frameInfo) {
    var cd = frameInfo[ct].state_code;
    if (frameInfo[ct].st_flag == 'Y') {
        var index1 = stateStore.find('state_cd', cd);
        Ext.getCmp('loadFrameStateInfoTable').getSelectionModel().select(index1, true);
    }
}

// This lock the checkbox model
var sm = Ext.getCmp('loadFrameStateInfoTable').getSelectionModel();
if (frame_status == 'Pending' || frame_status == 'Failed' || frame_status == 'Generated') {

} else {
    Ext.getCmp('update_button').disabled = true;
    sm.setLocked(true);
}

0 个答案:

没有答案