We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Overide sorting events but maintain sort order changes

In my grid, when I tap a column header, instead of letting the grid handle the sorting, I am calling back to the server to load (part of) the sorted data. I am doing this by intercepting the SortColumnsChanging event and setting e.Cancel = true to prevent the client side sorting from occurring.  This appears to also prevent the column from displaying the sort icon and prevents a second tap from switching from ascending to descending order.

Is there a way to prevent the local sort while maintaining the additional header functionality?


1 Reply

PS Pavithra  Sivakumar Syncfusion Team April 21, 2017 01:05 PM UTC

Hi Clint, 
 
Thanks for contacting Syncfusion support. 
 
Your requirement can be achieved by customizing the HeaderTemplate. 
 
Please refer the below sample for achieve your requirement and you can down load the same from the below location.  
 
 
Regards, 
Pavithra S 
 


Loader.
Live Chat Icon For mobile
Up arrow icon