SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.readOnly  property

If it is true, the user will not be able to edit data cell value during run time. 

In other words, you cannot insert, append, delete rows or update the existing rows. You can specify whether it is readOnly in column or cell unit, but you should specify this value as false first to enable editing. 

You can specify whether can display the cell editor by editable and DataColumn.editable

Defaults to false.

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