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

Problem with CultureInfo in UI and SelectedValue

1 Answer 52 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Sven Honert
Top achievements
Rank 1
Sven Honert asked on 13 Oct 2011, 07:19 PM

I am using the Telerik components “RadControls for Silverlight Q1 2011” and have the following problems:


The Silverlight-Application uses the following “CulturInfo”: („App.xaml.cs“)
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");

Besides that the following code is part of the UserControl constructor: (*.xaml.cs)
LocalizationManager.Manager = new CustomLocalizationManager();
LocalizationManager.DefaultCulture = new CultureInfo("de-DE");

 

The datagrid contains the column of the type “DateTime”. The DateTime-format must be in English according to the user settings (CRM2011).

 

How can I change the format of the data, which is selected in the control, in such a way that the format is defined in English and the UI stays in German.


Thank you in advance!

Sven

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 17 Oct 2011, 05:11 PM
Hi Sven,

You can use custom parsing, but leave the German culture set to the DateTimePicker. You could find more information about the custom parsing in this help article.

Hope this information helps.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
DateTimePicker
Asked by
Sven Honert
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or