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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Overide sorting events but maintain sort order changes

Thread ID:

Created:

Updated:

Platform:

Replies:

130087 Apr 20,2017 03:38 PM UTC Apr 21,2017 01:05 PM UTC Xamarin.iOS 1
loading
Tags: SfDataGrid
Clint Anderson
Asked On April 20, 2017 03:38 PM UTC

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?


Pavithra  Sivakumar [Syncfusion]
Replied On 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 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;