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

Custom Sort Order on grid column

1 Answer 1548 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 24 Dec 2015, 01:11 PM

There is one requirement where I need to sort column data on custom order. by default kendo grid support either ascending or descending order. is there any work around where I can sort data by custom order.

i.e. there is status column in the grid and data is grouped by this column and its possible values are -  Critical (1), Suspect(2) and ok (0) and the requirement is data should be sorted like Suspect, ok and critical. this order is neither ascending or descending (by status name or status id).

Thanks,

Dharmesh

 

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 25 Dec 2015, 11:32 AM
Hello Dharmesh,

You can define a custom compare function where you can specify how the information in a column should be sorted.



Regards,
Viktor Tachev
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
Venkat
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or