Wijmo UI for the Web
allowSorting Option
wijmo.grid.wijgrid Namespace > options type : allowSorting Option

Determines whether users can sort data in the grid by clicking a column header.

Default value: false

Type: Boolean

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  boolean
    returnsValue = $(".selector").wijgrid("option", "allowSorting");
    
    // Set value
    var newValue; // Type:  boolean
    $(".selector").wijgrid("option", "allowSorting", newValue);
        
});
var allowSorting : boolean;
Example
// Sort a column by clicking its header when allowSorting is set to true
$("#element").wijgrid({ allowSorting: true });
Remarks

When this option is set to true, users can toggle the sort order by clicking the column header again.

The Sorting sample demonstrates this feature.

See Also

Reference

options type
wijgrid jQuery Widget