SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.readMode  property

If specify as true, the grid will entirely become non-editable state regardless of other settings. 

You cannot display the editor in all data cells or update cell value like pasting, etc. It can be used when you should provide the grid view which can be checked only. 

Getter
function readMode(): Boolean
Setter
function setReadMode(value: Boolean)
Code -1
    $('#btnReadOnly').click(function () {
        grid.setReadMode(true);
    });
See Also
Editable & ReadOnly Overview
GridBase.editOptions
DataColumn.readOnly
DataColumn.editable
Examples
ReadOnly & Editable
Cell Editing
Edit Keys