SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.sortDirection  property

Sorting direction of this column. It specifies by SortDirection constant. 

If it is not sorted column, the return value will be meaningless. You can check sorting by sortOrder property. 

Defaults to SortDirection.ASCENDING.

Getter
function sortDirection(): SortDirection
Code -1
    $('#setSortDirection').click(function () {
        var col = grid.focusedColumn();
        col.setSortDirection(DataLudi.SortDirection.DESCENDING);
    });
See Also
SortDirection
sortOrder
sortable
orderyBy
GridBase.operateOptions
OperateOptions.sortingEnabled
Examples
Column Sorting