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

Week numbers is wrong

1 Answer 74 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rudolf
Top achievements
Rank 1
Rudolf asked on 11 Oct 2012, 05:38 AM
Dear Telerik Team,

we use the ScheduleView and have found a little problem.

When you open the calender, and look at the week numbers you will recognize that
the week numbers are always 1 Week higher than in reality.

That's why, because the calender starts in January with Week Number 2 (see attached Screenshot)

I found a post in you forum, that this ahppens because of the ISO Standard of the Culture Info

http://www.telerik.com/community/forums/aspnet-ajax/calendar/week-numbers-is-wrong.aspx


Is there any way to tell the WPF control also to use the right ISO Standard ?

best regards
Rudi

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 16 Oct 2012, 10:22 AM
Hello Rudi,

In order to change the behavior of the Calendar in the DatePicker of the ScheduleView control you will need to edit the theme you are using. The easiest way of doing that is by using Implicit Styles.

After merging the needed dictionaries you will need to:
  1. Open the Telerik.Windows.Controls.ScheduleView.xaml file.
  2. Edit the Style with x:Key="NavigationDateTimePickerStyle" and set the CalendarWeekRule of the RadCalendar with x:Name="PART_Calendar" to either FirstDay, FirstFourDayWeek or FirstFullWeek. This will change the way the first week is assigned in the calendar.

Hope this is helpful.


All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Rudolf
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or