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

Sorting of Date Column

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ritzie
Top achievements
Rank 1
Ritzie asked on 09 Jul 2009, 06:29 AM
hello All,

                 I am using a date column in rad grid I want that the sorting should take place in MM/DD/YYYY format instead it is doing sorting in DD/MM/YYYY.Do I have to set any kind of property .Plz reply soon.



Regards,
Ritzie

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Jul 2009, 06:54 AM
Hello Ritzie,

Set the DateFormatString for the date column and check whether its working fine for you.

ASPX:
 
<telerik:GridDateTimeColumn DataField="OrderDate" HeaderText="OrderDate" UniqueName="OrderDate" 
     PickerType="DatePicker" DataFormatString="{0:MM/dd/yyyy}"
</telerik:GridDateTimeColumn> 

-Shinu.
Tags
Grid
Asked by
Ritzie
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or