SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.enterToEdit  property

If it is true, when type enter key, if the editor has not been displayed, it will be displayed in Current Cell, and if the editor has already been displayed, it will Commit editing. 

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 enterToEdit(): Boolean
Setter
function setEnterToEdit(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            editable: true,
            enterToEdit: true
        }
    });
Code -2
    grid.setEditOptions({
        editable: true,
        enterToEdit: true
    });
Code -3
    grid.editOptions().setEnterToEdit(true);
See Also
editable
DataColumn.editable
CellStyle.editable
GridBase.focusedIndex
Cell Editing Overview
Examples
Edit Keys
Cell Editing