This is a migrated thread and some comments may be shown as answers.

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

6 Answers 148 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
mostafa darvish
Top achievements
Rank 1
mostafa darvish asked on 01 Aug 2009, 12:05 PM
how i can convert the higri shamsi(persian) to milady date in radscheduler control???
plz help me.pleas please .......

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Aug 2009, 05:44 AM
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.
0
Mostafa Tehrani
Top achievements
Rank 1
answered on 03 Aug 2009, 05:59 AM
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.

0
Dimitar Milushev
Telerik team
answered on 03 Aug 2009, 08:43 AM
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.
0
reza
Top achievements
Rank 1
answered on 23 May 2012, 05:40 PM
سلام میتونی از کد های تبدیل میلادی به شمسی که برای کل صفحه هست استفاده کنی.
اینم شمسی میشه

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

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
0
Peter
Telerik team
answered on 24 May 2012, 08:03 PM
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.
0
Ali
Top achievements
Rank 1
answered on 09 Nov 2012, 05:19 PM
salam
mer30 as javabetton
agar emkan dare vasatoon code haye shamsi wpf ya silver light sheduler ver 2011 ham post konid
ba tashakor
Tags
Scheduler
Asked by
mostafa darvish
Top achievements
Rank 1
Answers by
Peter
Telerik team
Mostafa Tehrani
Top achievements
Rank 1
Dimitar Milushev
Telerik team
reza
Top achievements
Rank 1
Ali
Top achievements
Rank 1
Share this question
or