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

RadCalendar Localization

3 Answers 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 12 Mar 2014, 01:21 PM
Hi

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

Sort by
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):
<telerikInput:RadCalendar MonthInfoDisplayMode="None" />

I hope this information helps. Let us know if you have further questions.

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.

 
0
Michael
Top achievements
Rank 1
answered on 13 Mar 2014, 09:11 AM
Hi Todor

Thanks for your Feedback.

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.

 
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Todor
Telerik team
Michael
Top achievements
Rank 1
Share this question
or