setting mouse cursor in onBeforeSorting event handler

Hi,



I’m trying to change the mouse cursor during sorting (for large datasets) in the grid:



//set onBeforeSorting event handler

mygrid.attachEvent(“onBeforeSorting”,function(index,grid,dir){

// Set cursor to hourglass

document.getElementById(“gridbox”).style.cursor = “wait”;

document.body.style.cursor = “wait”;

return true;

});



//set onAfterSorting event handler

mygrid.attachEvent(“onAfterSorting”,function(){

// Reset cursor

document.getElementById(“gridbox”).style.cursor = “default”;

document.body.style.cursor = “default”;

});



Same code used in the onLoadingStart/End event works fine.



Any idea?



regards,

Christian

Grid sorting works in synchronous mode. Browser will not change anything on the page till end of sorting.

Is there any workaround?

Unfortunately there is no way to set style of the cursor while sorting.