我有一个带复选框模型的网格,我想在某些条件下禁用某些复选框。
想要做这样的事情......
grid.getStore().load({
scope: this,
callback: function(records, operation, success) {
if (success) {
var sm = grid.getSelectionModel();
Ext.each(records, function(record) {
if (record.data.chkd) {
var row = record.index;
// console.log(record.index);
sm.select(row, true);
// HERE WANT TO DISABLE THE CHECKBOX FOR THE PARTICULAR RECORD
}
});
} else {
//alert(success);
//console.log(operation.exception);
}
}
});
先谢谢你的帮助!!