Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Schedule error in Culture "ar-SA"
posted

Hello,

When the Culture is set to "ar-SA" the calendar controls throw this error: "Week #N does not exist in year XXXX based on the current week rule ..."

http://i62.tinypic.com/11v1ukm.jpg

ar-SA ERROR

Parents
  • 21795
    Offline posted

    Hello Jorge,

    Thank you for contacting Infragistics Support.

    By setting the culture of your application to “ar-SA” you are switching from Gregorian calendars to UmAlQuraCalendar. This calendar is not fully supported by .NET framework. You may try to run the following snippet:

    CultureInfo culture = new CultureInfo("ar-SA");

    Thread.CurrentThread.CurrentCulture = culture;

    try

    {

        int months = culture.Calendar.GetMonthsInYear(DateTime.Today.Year);

    }

    catch(Exception ex)                                                                         

    {

        MessageBox.Show(ex.Message);

    }

    If you run that you’ll see that an exception is thrown. Please note that Infragistics controls support only Gregorian calendars. 

    Please let me know if you need any further assistance.

Reply Children