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

DateTime format issue using GridDateTimeColumn at update.

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 2
Dave asked on 13 Aug 2010, 12:39 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 18 Aug 2010, 03:59 PM
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
0
Dave
Top achievements
Rank 2
answered on 25 Aug 2010, 07:45 AM
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
0
Dave
Top achievements
Rank 2
answered on 25 Aug 2010, 09:09 AM
We had to change the grid layout and the problem does not appear anymore today.
Thank you for your time and support,
David
Tags
Grid
Asked by
Dave
Top achievements
Rank 2
Answers by
Tsvetina
Telerik team
Dave
Top achievements
Rank 2
Share this question
or