SMART datagrid v.1 > Classes > OperateOptions

Back  Forward

DataLudi.OperateOptions.sortingEnabled  property

If it is true, the user can do sorting by clicking column header cell. 

Although you can set DataColumn.sortable property to specify whether individual sorting of each column is possible, you should specify this property value as true first. 

Defaults to true.

Getter
function sortingEnabled(): Boolean
Setter
function setSortingEnabled(value: Boolean)
Code -1
    grid.setOptions({
        operate: {
            sortingEnabled: true,
            sortMode: DataLudi.SortMode.EXPLICIT
        }
    });
Code -2
    grid.setOperateOptions({
        sortingEnabled: true,
        sortMode: DataLudi.SortMode.EXPLICIT
    });
Code -3
    grid.operateOptions().sortingEnabled(true);
See Also
sortMode
sortStyle
SortCase
DataColumn.sortable
GridBase.orderBy
Examples
Column Sorting