不使用行编辑,使用单元格编辑
这样写CellCommitEdit事件,为什么不能实现联动?
function OnCellCommitEdit(e) {
var grid = e.sender;
var record = e.record;
var field = e.field, value = e.value;
if (field == "dept_id") {
var id = record.dept_id
if (id) {
var row = grid.getEditorOwnerRow(grid);
var editor = grid.getCellEditor("position", row);
按照版主的方法实现了,谢谢
function OnCellCommitEdit(e) {
var updataId = "";
var updataValue = "";
var grid = e.sender;
var record = e.record;
var field = e.field;
var value = e.value;