SMART datagrid v.1 > Classes > OperateOptions

Back  Forward

DataLudi.OperateOptions.keepFocusedRowWhenSort  property

If it is true, it will maintain the existing Current Row location after sorting. 

Defaults to false.

Getter
function keepFocusedRowWhenSort(): Boolean
Setter
function setKeepFocusedRowWhenSort(value: Boolean)
Code -1
    grid.setOptions({
        operate: {
            keepFocusedRowWhenSort: true
        }
    });
Code -2
    grid.setOperateOptions({
        keepFocusedRowWhenSort: true
    });
Code -3
    grid.operateOptions().setKeepFocusedRowWhenSort(true);
See Also
sortingEnabled
GridBase.focusedIndex
GridBase.focusedRow
Examples
Column Sorting