how using higri shamsi(persian) calender in radscheduler??

7 posts, 0 answers
  1. mostafa darvish
    mostafa darvish avatar
    1 posts
    Member since:
    Jul 2009

    Posted 01 Aug 2009 Link to this post

    how i can convert the higri shamsi(persian) to milady date in radscheduler control???
    plz help me.pleas please .......
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Aug 2009 Link to this post

    Hi mostafa,

    Thank you for contacting us and for your question. Currently, RadScheduler does not support persian calendar, but we have had such requests before and if there continues to be increased interest for such a feature, we will conduct research towards this direction and eventually implement it. Please, accept our apologies for this limitation of RadScheduler.


    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mostafa Tehrani
    Mostafa Tehrani avatar
    11 posts
    Member since:
    Aug 2009

    Posted 03 Aug 2009 Link to this post

    Hi,Thanks for reply,
    i purchase the Source of telerik Q1 2009 Asp.net Ajax to achieve this feature.please help me to learn more and do this.
    thanks my friend.

  4. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 03 Aug 2009 Link to this post

    Hi Mostafa Tehrani,

    Source code is provided for reference only. We do not support modified versions of our source code.

    All the best,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. reza
    reza avatar
    1 posts
    Member since:
    Jul 2008

    Posted 23 May 2012 Link to this post

    سلام میتونی از کد های تبدیل میلادی به شمسی که برای کل صفحه هست استفاده کنی.
    اینم شمسی میشه

    خوشحال شدم
    راستی اگه کاری داشتی راجع به اینها و محصولاتشون زیاد کارکردم باهاشون بپرس

    use the functions available on the microsoft site

            System.Globalization.CultureInfo calture = new System.Globalization.CultureInfo("fa-IR");
            System.Globalization.DateTimeFormatInfo info = calture.DateTimeFormat;
            info.AbbreviatedDayNames = new string[] { "ي", "د", "س", "چ", "پ", "ج", "ش" };
            info.DayNames = new string[] { "يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه" };
            info.AbbreviatedMonthNames = new string[] { "فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دي", "بهمن", "اسفند", "" };
            info.MonthNames = new string[] { "فروردين", "ارديبهشت", "خرداد", "تير", "مرداد", "شهريور", "مهر", "آبان", "آذر", "دي", "بهمن", "اسفند", "" };
            info.AMDesignator = "ق.ظ";
            info.PMDesignator = "ب.ظ";
            info.ShortDatePattern = "yyyy/MM/dd";
            info.FirstDayOfWeek = DayOfWeek.Saturday;
            System.Globalization.PersianCalendar cal = new System.Globalization.PersianCalendar();

            typeof(System.Globalization.DateTimeFormatInfo).GetField("calendar", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(info, cal);
            object obj = typeof(System.Globalization.DateTimeFormatInfo).GetField("m_cultureTableRecord", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(info);
            obj.GetType().GetMethod("UseCurrentCalendar", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).Invoke(obj, new object[] { cal.GetType().GetProperty("ID", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(cal, null) });
            typeof(System.Globalization.CultureInfo).GetField("calendar", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(calture, cal);
            typeof(System.Globalization.CultureInfo).GetField("calendar", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(calture, cal);

            System.Threading.Thread.CurrentThread.CurrentCulture = calture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = calture;
            System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat = info;
            System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat = info;

    big_keshish@yahoo.com
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 May 2012 Link to this post

    Hi Reza,

    Could you please post your questions in English?

    Greetings,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Ali
    Ali avatar
    2 posts
    Member since:
    Nov 2012

    Posted 09 Nov 2012 Link to this post

    salam
    mer30 as javabetton
    agar emkan dare vasatoon code haye shamsi wpf ya silver light sheduler ver 2011 ham post konid
    ba tashakor
Back to Top