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

Sorting Ignores Hyphen

1 Answer 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 22 Dec 2016, 06:41 PM

I am databinding a DataTable to a RadGrid.  The records look something like this:

 

Customer Name

A-Line Truck Equipment
ABC Enterprises
Airflow Systems
Airtest
Alloring
Anderson and Associates

 

But when this column is sorted in the grid, it appears like this:

ABC Enterprises
Airflow Systems
Airtest
A-Line Truck Equipment
Alloring
Anderson and Associates

 

As you can see, the hyphen is ignored in the A-Line Truck Equipment name which moves it in the list.  Is there a way to prevent this?

1 Answer, 1 is accepted

Sort by
0
Patrick | Senior Technical Support Engineer
Telerik team
answered on 22 Dec 2016, 08:06 PM
Hi Charles,

The sorting for the RadGrid implements standard sorting based on the Lexicographic system.  If you would like to implement custom sorting, please take a look at this article on Applying Custom Sort Criteria.

Hope this helps clear things.

Regards,
Patrick
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Charles
Top achievements
Rank 1
Answers by
Patrick | Senior Technical Support Engineer
Telerik team
Share this question
or