RadCalendar Localization

4 posts, 0 answers
  1. Michael
    Michael avatar
    12 posts
    Member since:
    Oct 2012

    Posted 12 Mar 2014 Link to this post

    Hi

    How can I localize MonthInfo in RadCalendar? The buildin localization is not correct and I want override it.

    Thanks

    Regards Michael
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 13 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Michael
    Michael avatar
    12 posts
    Member since:
    Oct 2012

    Posted 13 Mar 2014 in reply to Todor Link to this post

    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
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 13 Mar 2014 Link to this post

    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.

     
Back to Top
DevCraft banner