GridBoundColumn displaying the same date format regardless of DataFormatString settings.

4 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    May 2014

    Posted 15 Apr 2015 Link to this post

    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.

  2. Michael
    Michael avatar
    6 posts
    Member since:
    May 2014

    Posted 15 Apr 2015 in reply to Michael Link to this post

    it didnt want to include my 2 other snippets it seems.

    Database type is DateTime

    And the gris outputs:
    18-03-2015
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 20 Apr 2015 Link to this post

    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.

     
  5. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 22 Apr 2015 in reply to Eyup Link to this post


    Hi

    Admin

    Can you solve this 

    http://www.telerik.com/forums/how-to-designed-the-aspx-page-and-open-rad-window
Back to Top