SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.updateByCell  property

If it is true, when individual data cell input is about to complete in the updating row, it will commit row editing. 

Grid basically commits or cancels user input in Row unit. You can Commit row editing by entering multiple cells of the same row and trying to move rows by arrow keys or mouse or cancel the input of the entire rows by entering Esc key. You can also commit or cancel respectively by calling GridBase.commit or GridBase.cancel. However, if specify this property as true, when type Enter key or commit data cell input by moving to another cell, row editing will be committed at the same time. 

In order to commit in cell unit in the appending row, you can specify insertByCell as true. And, you can provide the same UI also during pasting by specifying pasteByCell equally. 

Defaults to false.

Getter
function updateByCell(): Boolean
Setter
function setUpdateByCell(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            updateByCell: true,
            insertByCell: true
        }
    });
Code -2
    grid.setEditOptions({
        updateByCell: true,
        insertByCell: true
    });
Code -3
    grid.editOptions().setInsertByCell(true);
See Also
insertByCell
pasteByCell
GridBase.commit
GridBase.cancel
updatable
Examples
Editing
Undo & Redo