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

Radgrid Numeric data sorting problem

1 Answer 345 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 10 May 2012, 09:48 PM
I have a column ID, I used DataType="System.Int64" but when sorting, still shows:

 

1,102,11,2,25,3,

I like it to sort 1,2,3,11,25,102 like number and filter like number when using less then...

Thanks!

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 May 2012, 05:36 PM
Hi,

When the DataType is a numeric type such as "Integer" or "Double", columns are sorted numerically.However, you can skip this default sort behavior and provide your own custom sort order for a column by setting the AllowCustomSorting property of the corresponding table view. For more information about custom sort criteria you can refer to this help topic.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
JJ
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or