| jQuery.wijmo.c1gridview Namespace > options type : sorted Event |
var options; // Type: jQuery.wijmo.c1gridview.options
// Create a new c1gridview widget
$(".selector").c1gridview(options);
// Get a previously created c1gridview widget instance
var widgetInstance; // Type: jQuery.wijmo.c1gridview
widgetInstance = $(".selector").data("wijmo-c1gridview");
// Set sorted event handler function
widgetInstance.option("sorted", function (e, args) { } );
// 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"); } });