SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.deletable  property

If this value is true and readOnly is false, the user can delete the selected row(s) by typing ctrl+del keys. 

If confirmWhenDelete is true, it will display the delete confirmation dialog box which is specified by deleteMessage first. 

Defaults to false.

Getter
function deletable(): Boolean
Setter
function setDeletable(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            appendable : true,
            deletable: true
        }
    });
Code -2
    grid.setEditOptions({
            appendable : true,
            deletable: true
    });
Code -3
    grid.editOptions().setDeletable(true);
See Also
readOnly
updatable
appendable
insertable
confirmWhenDelete
deleteMessage
GridBase.deleteSelection
Examples
Row Deleting