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

GridDateTimeColumn formats dates incorrectly after postback

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 07 Jan 2015, 02:45 PM
We have a grid that has a GridDateTimeColumn with the globalization culture info settings set to "en-GB".  If I enter the date "30/12/2014" and save it to the database, the column maintains the correct formatting of "dd/MM/YYYY" after the save postback completes.  However, if I enter "06/01/2015" and click save, the date format changes to "01/06/2015" after the postback.  The date is saved correctly in the db as "12/30/2014" and "01/06/2015".

I'm at a loss as to what the problem could be.  Checking CultureInfo and CultureUIInfo shows the following:
CultureInfo = "en-GB"
CultureUIInfo = "en-US"

Internet Explorer's "Language Preference" has only "English (United Kingdom) [en-GB]" in its list.

Even when I set CultureUIInfo to "en-GB" manually in the page_load, the problem persists.

Please help,

Thank you,
James

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 12 Jan 2015, 09:48 AM
Hi James,

I am sorry to say but the provided information is not sufficient for us to determine what is causing the described behavior. Could you please share with us the problematic page contents so we could examine the implementation?

I tried reproducing the issue in an isolated sample but to no avail. Please examine the test web site and tell us what differs in your case. If you can modify it in such a manner so that the problem can be replicated that would be great.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or