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

[Solved] Date Sorting

1 Answer 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill Jindrich
Top achievements
Rank 1
Bill Jindrich asked on 26 Jan 2010, 12:58 AM
I have a RadGridView with a column that contains dates. The value for this column for some of the rows is Null. The requirement that I have is that when sorting on this column, the "oldest' values should appear first, the "newest" values should appear later, and the Null values should appear last. When I sort on this column, I can either sort 
                                Newest .. Oldest .. Null       -OR-      Null ... Oldest .. Newest

but the sort order that I need is: Oldest .. Newest.. Null 

I there a way to accomplish this?

thanks

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jan 2010, 07:12 AM
Hi,

I'm not sure how to accomplish such date sorting however you can cancel the grid default sorting using Sorting event and perform your own.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Bill Jindrich
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or