Reputation: 1238
I have kendo grid which has some columns where it's showing text of the underlying value.
For e.g. Contract Name- its showing ABC as the text but value is say 10. When we apply sort on datasource, it sorts it using the values i.e. 10 and not the text.
Example : http://dojo.telerik.com/epOnU
I want to sort the datasource on the text of the column and not on the value.
Upvotes: 0
Views: 1892
Reputation: 1207
You can change your implementation using sort.compare function. I also use a template function instead of column.values option.
http://dojo.telerik.com/@uygard/opIbE
Upvotes: 1