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
11 Answers, 1 is accepted
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.
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.
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.
Hello.
I create a sample application.
http://www.mediafire.com/download/clvakkg2d6fhk3d/TelerikShamsiDate.zip
every things is OK. but there is a problem in scheduler MontheView and datepicker data entry.
scheduler MontheView problems:
1- "this month" hyper link in navigator creates exception.
2- View Monthly labels has just been translated into Persian,but Date values are still Gregorian.
*there is no problem in other Views (timeline, day, week).
datepicker problems:
1- user can not type Persian date. for example I typed 1394 (persian year) but value sets 0772 !
Thank you for writing.
There is a known issue in the .NET Framework considering the "fa-IR" culture. Please refer to the following MSDN resource for a solution: https://code.msdn.microsoft.com/Fixing-Persian-Locale-for-6e66e044#content
I hope this information helps. Should you have further questions I would be glad to help.
Dess
Telerik
Hello Dess.
Thank you.
RadDatepicker problem was solved, but scheduler MontheView is same as before.
for more details, I attached some image.
Thank you for writing back.
The provided screenshots are greatly appreciated. I have logged it in our feedback portal. You can track its progress, subscribe status changes and add your vote/comment to it on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to use the CellFormatting event and set the correct text to be displayed:
private
void
radScheduler1_CellFormatting(
object
sender, SchedulerCellEventArgs e)
{
MonthCellElement monthCellElement = e.CellElement
as
MonthCellElement;
if
(monthCellElement !=
null
)
{
monthCellElement.Header.Text = monthCellElement.Date.ToString(
"dd"
,
this
.radScheduler1.Culture);
}
}
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik
I really appreciate your help in resolving the problem.
there is another problem in MontheView with navigation bar. if click on previous button several times, below exception will be thrown:
"Year, Month, and Day parameters describe an un-representable DateTime."
Thank you.
Thank you for writing back.
Indeed, the initial problem is fixed, but when navigating forwards / backward the mentioned exception is thrown. I have logged it in our feedback portal and I have added a vote for it on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, due to the specificity of the issue, I am unable to suggest a suitable solution.I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik by Progress
hi
i need change cultter to persian raddatetimepicker
how i do?
are you update for this component?
The previously referred feature request, "ADD. RadScheduler - support for "fa-IR" culture and PersianCalendar", has already been implemented. 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.
However, if you are experiencing any difficulties with this functionality, feel free to submit a support ticket providing additional information about the precise case. Thus, our support staff will gladly assist you.
I hope this information helps.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik