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

Kendo grid sortable compare not being run during initialization

1 Answer 364 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaanus
Top achievements
Rank 1
Jaanus asked on 05 Dec 2018, 01:28 PM

I have issue that sortable compare is not being run during first load, even if I have defined sort column.

This is the example:

https://dojo.telerik.com/oFoWIcAt

 

It is not using my comparable function and using alphabetical ordering.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 07 Dec 2018, 11:07 AM
Hello Jaanus,

The columns.sortable.compare function will be invoked when the users click the column header and initiate sorting. In order to have the same order of the items when initial sorting is specified I suggest adding a sort.configure function to the DataSource configuration.

Check out the updated dojo that illustrates the behavior:



Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Jaanus
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or