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

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// The following code handles the sorted event and will give you access to the column and the sort direction
$("#element").wijgrid({
    sorted: function (e, args) {
        alert("Column " + args.column.headerText + " sorted in " + args.sortDirection + " order");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ sorted: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridsorted", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget