I would like to change the cursor to wait
when a user clicks on a column header to sort the data (because the process takes several seconds during which nothing changes).
To do so, I tried to change the cursor
CSS property in the onSortCol
event:
onSortCol: function (index, iCol, sortorder) {
$("body, .ui-jqgrid .ui-th-column > div.ui-jqgrid-sortable").css({'cursor' : 'wait'});
}
and changed it back in the loadComplete
event:
loadComplete: function () {
$("body").css({'cursor' : 'default'});
$(".ui-jqgrid .ui-th-column > div.ui-jqgrid-sortable").css({'cursor' : 'pointer'});
}
But it doesn't work. It seems like the browser doesn't render the cursor before the sorting is done.
Any idea how to proceed ?