This is a migrated thread and some comments may be shown as answers.

Custom sort function for Kendo grid

1 Answer 2997 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ak12345
Top achievements
Rank 1
ak12345 asked on 20 May 2014, 05:30 PM
Hi, Can anyone please let me know how we can write our own function for sorting when the column header is clicked. And do we need to write two function for asc and desc? Any help appreciated!

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 21 May 2014, 02:57 PM
Hello Archana,


In the Kendo UI Web Grid you could define a custom sortable.compare function per column. You should only define a single function. In the provided documentation page you could find additional details and an example.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
ak12345
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or