SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.insertByCell  property

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

Basically, Grid commits or cancels user input in Row unit. You can enter several cells of the same row and try row moving by arrow key or mouse to Commit row editing or enter Esc key to cancel the input of the entire row. You can commit or cancel respectively by calling GridBase.commit or GridBase.cancel. However, if specify this property as true, when typing Enter key or committing data cell input after moving to another cell, row editing will be committed at the same time. 

In order to commit in cell unit in updating row, you should specify updateByCell as true

Defaults to false.

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