How can I localize MonthInfo in RadCalendar? The buildin localization is not correct and I want override it.
Thanks
Regards Michael
3 Answers, 1 is accepted
0
Todor
Telerik team
answered on 13 Mar 2014, 08:56 AM
Hello Michael,
Thank you for your question.
The month info text is generated in the code of RadCalendar following the currently used culture. If you don't like the text that is generated by default, you have two options:
1) change the culture that is used by the calendar control - this way you will be able to choose the proper culture and display the months in the correct language and format:
<telerikInput:RadCalendar Culture="fr-FR"/>
2) remove the month info by setting MonthInfoDisplayMode to None - then you can display month info in a custom TextBlock with desired text or use RadDatePicker with desired formatting (as RadCalendar does by default):
The problem is that the month always begins with a lowercase letter. That's not correct in German (eg. März instead of märz). So, option 1 does not helps.
To option 2: How can I get the current month?
Regards Michael
0
Todor
Telerik team
answered on 13 Mar 2014, 09:40 AM
Hello Michael,
You can use the DisplayDate property of RadCalendar, in order to determine the currently displayed month.
Regards,
Todor
Telerik
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges.Watch on demand now.