3.2.0

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
Rhea
November 10,
I found this topic and have solved my problem.

http://activewidgets.com/javascript.forum.16961.4/action-after-sorting.html

Thanks :)
Rhea
November 10,

This topic is archived.

See also:


Back to support forum