Wijmo UI for the Web
sorting Event
wijmo.grid.wijgrid Namespace > options type : sorting Event
The jQuery.Event object.
The data with this event.
The sorting event handler is a function that is called before the sorting operation is started. This event is cancellable. The allowSorting option must be set to "true" for this event to raise.
Syntax
$(function () {
    // Set sorting event handler function
    $(".selector").wijgrid({
        sorting : function (e, args) {
     
        }
    });
});
sorting = function ( 
   e : Object,
   args : ISortingEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Preventing user from sorting the "ID" column.
$("#element").wijgrid({
    sorting: function (e, args) {
        return !(args.column.headerText === "ID");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ sorting: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridsorting", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget