Unplanned
Last Updated: 10 Oct 2024 06:27 by ADMIN
Jihong
Created on: 10 Oct 2024 06:19
Category: Calendar
Type: Bug Report
1
RadCalendar: WeekNumber is not correct when CalendarWeekRule.FirstFourDayWeek

To reproduce: 

CultureInfo culture = new CultureInfo("en-US");
culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
culture.DateTimeFormat.CalendarWeekRule = CalendarWeekRule.FirstFourDayWeek;
this.radCalendar1.ShowRowHeaders = true;
this.radCalendar1.Culture = culture;

 

1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 10 Oct 2024 06:27

Hello, Jihong,

You can set CalendarWeekRule.FirstDay:

culture.DateTimeFormat.CalendarWeekRule = CalendarWeekRule.FirstDay;

RadCalendar:

MS MonthCalendar:

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.