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

Weeknumbers won't update

3 Answers 7 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 11 Jul 2019, 05:01 PM

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>

3 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 11 Jul 2019, 05:16 PM
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.
0
Thomas
Top achievements
Rank 1
answered on 11 Jul 2019, 05:38 PM

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.

0
Martin Ivanov
Telerik team
answered on 16 Jul 2019, 09:32 AM
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.
Tags
Calendar
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or