How to determine programmatically if column sorting is already finished?
I want to show a loading image on top of my page while sorting is being done and then hide this image after the sort is done. On my code below, the loading image did not show on the page because the code "showLoadingImage(false);" was executed first before the sort was done. How will I know programmatically that the sort event is completely done before i will call showLoadingImage(false) ?
try
{
showLoadingImage(true);
_obj.sort(index, direction);
_obj.setSortColumn(index);
_obj.setSortDirection(direction, index);
_obj.refresh();
}
catch()
{
alert("Error sorting!")
}
finally
{
showLoadingImage(false);
}
RHea
try
{
showLoadingImage(true);
_obj.sort(index, direction);
_obj.setSortColumn(index);
_obj.setSortDirection(direction, index);
_obj.refresh();
}
catch()
{
alert("Error sorting!")
}
finally
{
showLoadingImage(false);
}
RHea
Rhea
November 10,