可以使用事件的方式,动态判断哪个单元格正在编辑,如果需要锁定,则在事件中处理
// after grid initialised
flex.beginningEdit.addHandler(onBeginningEdit);
....
function onBeginningEdit(grid, e) {
var isEditable = true,
rowEntity = grid.itemsSource.items[e.row],
wijColObj = grid.columns[e.col];
// perform condition check here
// isEditable = your condition
// set cancel to true to prevent cell edit
e.cancel = !isEditable;
} |