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

GridBoundColumn displaying the same date format regardless of DataFormatString settings.

3 Answers 360 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Apr 2015, 10:52 AM

Hi, 

My grid has 2 collumns showing dates from the datasource which is hooked up to the database.

I serached for a fix for this and found alot of diffrent solutions yet none of them seem to work for me.

 

Column in grid:

<telerik:GridBoundColumn DataField="created_date" DataType="System.DateTime" FilterControlAltText="Filter created_date column" HeaderText="created date" SortExpression="created_date" UniqueName="created_date" FilterControlWidth="75px" DataFormatString="{0:yyyy/MM/dd}" meta:resourcekey="GridBoundColumnResource24">
</telerik:GridBoundColumn>

 

DataBase:

 

Output:

 

Any suggestions is much appriciated.

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 15 Apr 2015, 10:57 AM
it didnt want to include my 2 other snippets it seems.

Database type is DateTime

And the gris outputs:
18-03-2015
0
Eyup
Telerik team
answered on 20 Apr 2015, 08:32 AM
Hi Michael,

This is strange actually. The property should work as expected. I've tested the column definition on my side and the values are displayed correctly. Could you please run the attached application and let me know about the result?

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Jaya
Top achievements
Rank 1
answered on 22 Apr 2015, 06:19 AM

Hi

Admin

Can you solve this 

http://www.telerik.com/forums/how-to-designed-the-aspx-page-and-open-rad-window
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Eyup
Telerik team
Jaya
Top achievements
Rank 1
Share this question
or