DateTime format issue using GridDateTimeColumn at update.

4 posts, 1 answers
  1. Dave
    Dave avatar
    25 posts
    Member since:
    Aug 2012

    Posted 13 Aug 2010 Link to this post

    Hi,

    When going to update a recordset, I got invariably the error "The string was not recognized as a valid DateTime." using the followings;

    ...
      
            <telerik:GridDateTimeColumn
                SortExpression="DateUpdated"
                DataType="System.DateTime"
                HeaderText="Updated"
                DataField="DateUpdated"
                UniqueName="DateUpdated"
                DataFormatString="{0:dd/MM/yyyy}"
                ReadOnly="true">
            </telerik:GridDateTimeColumn>
      
    ...

    If I am removing the DataFormatString, it is working perfectly.
    Any idea to fix this out ?

    Regards,
    David
  2. Answer
    Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 18 Aug 2010 Link to this post

    Hello David,

    I tried to replicate the issue described by you in a sample project but to no avail. I am attaching it to this post. Could you please review it and let me know if I am missing anything out?

    If you still cannot figure out what is the cause of the issue, you can open a formal support ticket and send us a stripped runnable version of your project, so we can debug it locally and track down the reason for the problemmatic behavior.

    Kind regards,
    Tsvetina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave
    Dave avatar
    25 posts
    Member since:
    Aug 2012

    Posted 25 Aug 2010 Link to this post

    Dear Tsvetina,

    I am not able to run your code, it states "the page is not valid". I am running it from an isolated server as the local policy does not allow me to have a sandbox with an outside connection enabled which have some sort of importance.

    Have to precise the code snippet provided is refering to a RadGrid implementation. I will try to open a ticket providing a runnable code still today.

    David
  5. Dave
    Dave avatar
    25 posts
    Member since:
    Aug 2012

    Posted 25 Aug 2010 Link to this post

    We had to change the grid layout and the problem does not appear anymore today.
    Thank you for your time and support,
    David
Back to Top