I've looked through the jqGrid documentation and a few other SO questions, and pretty much the only documented way to handle onSortCol
is when you initialize the grid, ie:
var myGrid = $("#gridid").jqGrid({
//...
onSortCol: function(index, iCol, sortorder) { ... }
});
Is there a way to bind to the onSortCol
event through the myGrid
reference, after the grid has already been initialized?
Something like:
myGrid.onSortCol(function (index, iCol, sortorder)
{
//...
}
);
Thanks!