Weeknumbers won't update

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    12 posts
    Member since:
    Mar 2010

    Posted 11 Jul 2019 Link to this post

    Hi Progress Team,

    I added a RadCalendar component to my project but when changing the base week of this 2x2 grid calendar the weeknumbers stay the same all the time. Have I missed something here? How do they update? I used the following code for the XAML definition:

    <telerik:RadCalendar
        Grid.Column="0"
        Margin="36,10,10,10"
        AreWeekNamesVisible="True"
        AreWeekNumbersVisible="True"
        CalendarWeekRule="FirstFourDayWeek"
        Columns="2"
        Culture="de-DE"
        DateSelectionMode="Day"
        FirstDayOfWeek="Monday"
        Foreground="White"
        Rows="2"
        SelectionMode="Extended"
        ViewsHeaderVisibility="Visible">
    </telerik:RadCalendar>
  2. Thomas
    Thomas avatar
    12 posts
    Member since:
    Mar 2010

    Posted 11 Jul 2019 in reply to Thomas Link to this post

    Sorry, I missed a line in my last post. The problem occurs when adding a custom style to the calendar. First I thought I made a mistake somewhere but this also occurs when adding a standard copy of the style to it and change nothing. Seems to be related to the style.
  3. Thomas
    Thomas avatar
    12 posts
    Member since:
    Mar 2010

    Posted 11 Jul 2019 in reply to Thomas Link to this post

    Sorry again for bothering you. I found a solution, this post had the answer I was searching all day:

    https://www.telerik.com/forums/problem-when-using-expression-darktheme

    "Thanks for pointing out this Expression Blend issue.  Try editing the CalendarButtonStyle and adding the following two template bindings to the ContentControl inside the CalendarButtonControlTemplate:

    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"

    "

    This did the trick, I was using Office2016 style.

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2360 posts

    Posted 16 Jul 2019 Link to this post

    Hello Thomas,

    It is nice to hear that you found a solution. Thank you for sharing it.

    A small note: this is known and you can find it logged here - https://feedback.telerik.com/wpf/1351913-calendar-buttons-text-is-not-correct-after-the-extraction-of-the-template-via-visual-studio-or-blend

    Regards,
    Martin Ivanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top