SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.editable  property

It specifies whether to display cell editor. 

If it is false, the editor will not be displayed even in the editable cell. Although you can specify by DataColumn.editable or CellStyle.editable, the editor will be displayed only if this value is specified as true first. 

You can specify whether to actually update data cell value by readOnly and DataColumn.readOnly

Defaults to true.

Getter
function editable(): Boolean
Setter
function setEditable(value: Boolean)
Note
Code -1
    grid.setOptions({
        edit: {
            editable: true,
            editWhenFocused: true
        }
    });
Code -2
    grid.setEditOptions({
        editable: true,
        editWhenFocused: true
    });
Code -3
    grid.editOptions().setEditable(true);
See Also
Editable & ReadOnly Overview
readOnly
DataColumn.editable
CellStyle.editable
Cell Editing Overview
Examples
ReadOnly & Editable
Cell Editing