SMART datagrid v.1 > Classes > OperateOptions

Back  Forward

DataLudi.OperateOptions.sortMode  property

It specifies whether to automatically rerun column sorting when the data of Data Set which has been connected to Grid is changed. 

It is specified by SortMode constant. If it is AUOT, the grid will sort again automatically, and if it is EXPLICIT, it will sort again only when the user clicks the column header cell. 

Defaults to SortMode.AUTO.

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