Sorting Issues

Hi,



My requirement is to display a message when the Sort column is clicked, and hide that message after sorting is done.

I have added the following code.



mygrid.attachEvent(“onBeforeSorting”,function(col,type,order){ document.getElementById(‘divResorting’).style.display = ‘’; });

mygrid.attachEvent(“onAfterSorting”,function(col,type,order){ document.getElementById(‘divResorting’).style.display = ‘none’; });



Now, when I click on any column, the sorting is not done and the message is also not coming.

How to resolve this issue?





Thanks

Sachin M



onBeforeSorting is cacelable, so if you do not return true there, it is canceled.