谢谢您的反馈。
只能通过处理beginningEdit事件来阻止特定单元格的编辑(通过设置e.cancel=true)
代码参考:
- // prevent editing in cells that have “EditHours” set to true
- grid.beginningEdit.addHandler(function (s, e) {
- var row = s.rows[e.row],
- col = s.columns[e.col],
- item = row.dataItem;
- if (col.binding == ‘Hours’ && item.EditHours == true) {
- e.cancel = true;
- }
- });
复制代码 |