Persian RadDateTimePicker

4 posts, 0 answers
  1. mrf
    mrf avatar
    4 posts
    Member since:
    Aug 2018

    Posted 20 Jan 2019 Link to this post

    hi
    i need change culter to persian raddatetimepicker
    how i do?are you update for this component?

    most iranian developer use telerik . update for they

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4119 posts

    Posted 23 Jan 2019 Link to this post

    Hello,       
      
    Since the product of this thread is specified as RadScheduler, I suppose that your question is related to RadScheduler and the RadDateTimePicker that shows in the dialogues. We already had a feature request for "fa-IR" culture and PersianCalendar support. It has already been implemented. You can refer to the following feedback item: https://feedback.telerik.com/winforms/1371834-add-radscheduler-support-for-fa-ir-culture-and-persiancalendar
    It was introduced in R1 2017 version. Feel free to use at least this version or a newer one in order to benefit from the new functionality.

    As it is noted in the following help article about RadDateTimePicker, there is a known issue in the .NET Framework considering the "fa-IR" culture Fixing Persian Locale for Persian Calendar and Month Names: https://docs.telerik.com/devtools/winforms/controls/editors/datetimepicker/internationalization/cultureinfo-and-regioninfo-basics
      
    I hope this information helps.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Javad
    Javad avatar
    1 posts
    Member since:
    Jan 2018

    Posted 03 Jun 2020 Link to this post

    I use R3 2019 Version.

    I used rad datetime picker and change the culture to "fa-IR" to use in Persian format it works fine. The problem is on some of the clients, it shows the control in "en-US" format. What is the issue? I change the culture in form load event.

    here is the code I use:

    1.datepicker.Culture = new System.Globalization.CultureInfo("fa-IR");
    2.datepicker.NullableValue = null;
    3.datepicker.SetToNullValue();
  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4119 posts

    Posted 04 Jun 2020 Link to this post

    Hello, Javad, 

    Following the provided code snippet, I have prepared a sample project to test the behavior locally. It seems that the fa-IR culture is applied to the RadDateTimePicker control on my end (OS Win 10):

    According to the provided brief information, it wouldn't be easy to determine what causes the undesired behavior on your clients' machines. But if it works OK on your end, it seems to be dependent to the operating system. If your clients are using Windows version lower than Windows 10, there is a known issue in the .NET Framework considering the "fa-IR" culture. After some research in general programming forums, I have found the following article which may be suitable for your case: https://www.codeproject.com/Articles/256104/Using-Custom-Culture-Approach-to-Fix-Persian-Cutur 

    I hope this information helps.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top