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

how to reset sorting using ng-template?

Hi!

the default sorting logic provided by syncfusion doesn't work because I use "ng-template". so, i add

(actionComplete)="actionCompleteHandler($event) in

and my actionCompleteHandler like this :




problem is this :

when i click field three time, the icon removed but not reset sort


how do i do ?



sorry for my poor english :)


1 Reply

PS Pavithra Subramaniyam Syncfusion Team April 27, 2023 05:34 AM UTC

Hi sir/ Madam,


From your query, we understood that you want to perform sorting for the template column as per your custom logic. By default, the Grid will sort the column based on the underlying values of the grid data source. If you want to customize this behavior, then we suggest the “Sort comparer” feature of the grid column which provides an option to perform the sorting based on your own logic. Please refer to the below documentation link for more information.


https://ej2.syncfusion.com/angular/documentation/grid/sorting#sort-comparer


Please get back to us if you need further assistance on this.


Regards,

Pavithra S


Loader.
Live Chat Icon For mobile
Up arrow icon