SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.keepFocusedWhenSelecting  property

If specify as true, when change the range of selection area by arrow keys, it will maintain the location of Focused Cell

Defaults to false.

Getter
function keepFocusedWhenSelecting(): Boolean
Setter
function setKeepFocusedWhenSelecting(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            keepFocusedWhenSelecting: true
        }
    });
Code -2
    grid.setEditOptions({
        keepFocusedWhenSelecting: true
    });
Code -3
    grid.editOptions().setKeepFocusedWhenSelecting(true);
See Also
GridBase.focusedIndex
DisplayOptions.selectStyle
Examples
Selection