Problem with CultureInfo in UI and SelectedValue

2 posts, 0 answers
  1. Sven Honert
    Sven Honert avatar
    13 posts
    Member since:
    Feb 2010

    Posted 13 Oct 2011 Link to this post

    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!


  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 17 Oct 2011 Link to this post

    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.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top