SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.forceInsert  property

If it is true, even if the cell values are not changed in the inserting row, row inserting will be Committed

Defaults to false.

Getter
function forceInsert(): Boolean
Setter
function setForceInsert(value: Boolean)
Code -1
   grid.setOptions({
        edit: {
            forceInsert: true,
            forceAppend: true
        }
    });
Code -2
    grid.setEditOptions({
        forceInsert: true,
        forceAppend: true
    });
Code -3
    grid.editOptions().setForceInsert(true);
See Also
forceAppend
commitWhenNoEdit
GridBase.commit
GridBase.cancel
Cell Editing Overview
Examples
Cell Editing