SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.checkCellDiff  property

如果为true,就会在提交单元格编辑时,如果所输入的单元格的值并非不同于现有值,就不会提交而是会忽视。 

默认值为false.

Getter
function checkCellDiff(): Boolean
Setter
function setCheckCellDiff(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            checkCellDiff: true
        }
    });
Code -2
    grid.setEditOptions({
        checkCellDiff: true
    });
Code -3
    grid.editOptions().setCheckCellDiff(false);
See Also
checkDiff
GridBase.commitEditor
GridBase.commit
GridBase.cancel
单元格编辑概述
Examples
单元格编辑