WPF Arabic Culture Problem

2 posts, 0 answers
  1. Davut
    Davut avatar
    1 posts
    Member since:
    Mar 2012

    Posted 11 Feb Link to this post

    Hello, I'm trying RadDatePicker WPF (2016.1.112.45), but the day numerals are not shown in "Arabic Numerals".
    And also there is another problem, when I'm selecting the day from popup, its been converted to hicri date on the top side.

    The startup code : (App.xaml.cs)

    1.Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-SA");
    2.Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-SA"); 


    What am i doing wrong?


    Note :

    I'm trying this on Visual Studo 2013, win7(64bit) Turkish. 

  2. Nasko
    Nasko avatar
    555 posts

    Posted 12 Feb Link to this post

    Hi Davut,

    In order to present the dates into the desired format you need to set the NumberFormat of the CultureInfo to the NativeNational DigitShape:
    var culture = new CultureInfo("ar-SA") { NumberFormat = { DigitSubstitution = DigitShapes.NativeNational } };
    Thread.CurrentThread.CurrentCulture = culture;
    Thread.CurrentThread.CurrentUICulture = culture;

    As for your second question, RadDateTimePicker does not support the Hijri calendar only the Gregorian- it uses different algorithm for generating the days. Because of that the dates should be generated by the Gregorian calendar.We have a feature request logged in our Feedback portal for providing support for Hijri calendar - you could find the item on the following link where you could vote for it:

    We hope this will help you.

    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top