SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.editWhenFocused  property

If it is true, when the location of Focused Cell is determined, if it is an editable cell, the editor will be displayed immediately. 

First, both editable and editable of column should be true. And, editable should not be specified as false through CellStyle

Defaults to false.

Getter
function editWhenFocused(): Boolean
Setter
function setEditWhenFocused(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            editable: true,
            editWhenFocused: true
        }
    });
Code -2
    grid.setEditOptions({
        editable: true,
        editWhenFocused: true
    });
Code -3
    grid.editOptions().setEditWhenFocused(true);
See Also
editable
DataColumn.editable
editable
GridBase.focusedIndex
Cell Editing Overview
Examples
Cell Editing