Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Problem to change culture to persian

Not answered Problem to change culture to persian

Feed from this thread
  • Hamed Vaziri avatar

    Posted on Feb 11, 2010 (permalink)

    Hi
    i've tested out your scheduler control whether does it support persian culture or not.
    i found this link which help me very much!
    almost everyThing is ok except month view. in month view the calendar does not works correctly and also gregorian month name display in the first of the week day that i don't see it.
    in attention to that post which this schedule control does not support persian calendar, is there any way to work-around this problem ?
    thanks in advance

    Reply

  • Boyko Markov Boyko Markov admin's avatar

    Posted on Feb 16, 2010 (permalink)

    Hi Hamed Vaziri,

    I have successfully changed the culture of RadScheduler for Winforms to Persian with the latest version of our controls:

               CultureInfo info = new CultureInfo("fa-Ir");
                this.radScheduler.Culture = info;

    Could you please try the above code and if there's a problem, please give us more detailed explanation about this issue?

    I am looking forward to your reply.

    All the best,
    Boyko Markov
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.

    Reply

  • Posted on Dec 7, 2011 (permalink)

    Sorry for bringing up old posts. Just found this topic while trying to integrate Persian calendar with RadScheduler.

    MSDN states about PersianCalendar:

    "Applications use a PersianCalendar object to calculate dates in the Persian calendar or convert Persian dates to and from Gregorian dates.

    Your application should not use a PersianCalendar object as the default calendar for a culture. The default calendar is specified by the CultureInfo.Calendar property and must be one of the calendars returned by the CultureInfo.OptionalCalendars property. Currently, the PersianCalendar class is not an optional calendar for any culture supported by the CultureInfo class and consequently cannot be a default calendar." (Source: http://msdn.microsoft.com/en-us/library/system.globalization.persiancalendar.aspx)

    So while there is in fact a PersianCalendar in .NET framework, it cannot be used as a default calendar for any CultureInfo. Not yet at least. As to your proposed solution, the "fa-IR" or "fa" cultures use Georgian calendar, and they also have wrong translations for week days (thanks to Microsoft).

    I think the best solution would be to use the default Georgian calendar for all the business logic and storage layer, but to change the presentation layer by converting Georgian dates to Persian using PersianCalendar class and changing every textbox or other control that is displaying dates, day of the week and month names.

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Dec 8, 2011 (permalink)

    Hello Sahand,

    Thank you for sharing your findings. I believe that they will be useful to other people.

    Do not hesitate to contact us if you need any help with our products.

    Best wishes,
    Ivan Todorov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Problem to change culture to persian
Related resources for "Problem to change culture to persian"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]