SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.deletableWhenEdit  property

If it is false, when editing the row, you will not be able to delete(deleteSelection) the rows selected by Ctrl+Del keys or delete the rows specified by deleteRows, and will display edit commit warning. 

If it is true, it will commit the existing editing and run deleting. 

Defaults to true.

Getter
function deletableWhenEdit(): Boolean
Setter
function setDeletableWhenEdit(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            deletableWhenEdit : false,
            deletable: true
        }
    });
Code -2
    grid.setEditOptions({
            deletableWhenEdit : true,
            deletable: true
    });
Code -3
    grid.editOptions().setDeletableWhenEdit(true);
See Also
deletable
GridBase.deleteSelection
GridBase.deleteRows
Examples
Row Deleting