Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sachin on Dec 29, 2008 02:43
open dhtmlx forum
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

Answer posted by support on Dec 29, 2008 09:09
onBeforeSorting is cacelable, so if you do not return true there, it is canceled.