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

[Solved] Need to sort a date column so that empty values appear at the bottom

1 Answer 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jasear
Top achievements
Rank 1
jasear asked on 21 Jul 2009, 05:44 PM
Hi,

I am using a RadGrid in which I have a date column. At the moment when I sort by the column in ascending order the empty records appear at the top and then the rest of the dates are shown in ascending order.

However what I need to do is to apply a sorting algorithm so that the empty columns always appear at the bottom whether the user selects to sort in desc or asc order.

Is this possible? If so please advise the best approach in your opinion.

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Jul 2009, 02:16 PM
Hi jasear,

If you want to change the default sorting direction for the empty dates in the grid column, consider either switching the sorting direction manually as shown here or cancel the default sort for the grid and implement your custom sorting based on the guidelines from this help topic.

Best,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
jasear
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or