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

Nature sorting

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lawrence
Top achievements
Rank 1
Lawrence asked on 07 Aug 2018, 04:17 AM

Hi,

I want to make a multiple sorting + natural sorting column. Multiple sorts are working fine but not for natural sort.

May refer to attached image.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Aug 2018, 08:17 AM
Hi Lawrence,

By default, the RadGrid will use the natural sort order from the DataSource for the non-sorted state of the column, so if are setting the DataSource object of the control with the correct sort order of that column, there should be no problems with it.
However, since this is a string value, the sorting for that column will be based on those string values and it will not be possible to have the sorting as per your requirements.

Regarding a custom sorting criteria, you could refer to the following help article for detailed information and example on this matter, but please note that it is difficult to maintain and to allow multi-column sorting with custom handling: http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/sorting/applying-custom-sort-criteria.


Best regards,
Rumen
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
Lawrence
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or