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

Sorting DateTime Column in a Grid

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Twu
Top achievements
Rank 1
Twu asked on 11 Oct 2013, 03:30 PM
Hey there, 

I have a question as the following: 

I have a RadGrid which have a column InstallDate that is DateTime Type. 

and for example here is the data: 

11/10/2013
10/10/2013
9/10/2013
Not install

because I have a string inside that column, so how can I sort this kind of Column from this Grid. 

it is Urgent for me. 

Thanks,T

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 16 Oct 2013, 08:28 AM
Hello T,

Thank you for contacting us.

You could sort as you sort any other column. In order to enable the sorting functionality you have to set AllowSorting to true. I prepared a small sample and attached it to this thread. Please give it a try and let me know about the result.

Regards,
Kostadin
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Twu
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or