Wijmo UI for the Web
allowSorting Option

Default value: false

Determines whether the widget can be sorted by clicking the column header.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  bool
    returnsValue = $(".selector").wijgrid("option", "allowSorting");
    
    // Set value
    var newValue; // Type:  bool
    $(".selector").wijgrid("option", "allowSorting", newValue);
        
});
Javascript (Specification) 
var allowSorting : bool;
Example
// Sort a column by clicking its header when allowSorting is set to true
$("#element").wijgrid({ allowSorting: false });
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.