SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.commitOnLastCell  property

If it is true, when enter Enter or Tab key in the last cell of editing row, it will Commit the row. 

In order to commit only cell instead of row, you can use hideOnLastCell(ver1.3). 

Defaults to false.

Getter
function commitOnLastCell(): Boolean
Setter
function setCommitOnLastCell(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            commitOnLastCell: true
        }
    });
Code -2
    grid.setEditOptions({
        commitOnLastCell: true
    });
Code -3
    grid.editOptions().setCommitOnLastCell(true);
See Also
hideOnLastCell
crossWhenExitLast
useTabKey
commit
Cell Editing Overview
Examples
Cell Editing
Edit Keys