Completed
Last Updated: 30 Oct 2020 17:06 by ADMIN
Release R1 2021 (LIB 2020.3.1102)
CHEE HANG
Created on: 23 Oct 2020 11:10
Category: UI for WinForms
Type: Bug Report
0
RadScheduler: Changing the scale to Weeks in the timeline view does not update the start date

How to reproduce: Make sure that the StartDate of the current view is not the first day of the week. Change the view to timeline and set the time scale to be Weeks:

this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
SchedulerTimelineView view = this.radScheduler1.GetTimelineView();
view.ShowTimescale(Timescales.Weeks);


1 comment
ADMIN
Hristo
Posted on: 23 Oct 2020 11:16

Workaround:

Change the view`s start day to the first day of the week before changing the scale:

this.radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
SchedulerTimelineView view = this.radScheduler1.GetTimelineView();
DateTime date = DateHelper.GetStartOfWeek(view.StartDate, view.CurrentCulture.DateTimeFormat);
view.StartDate = date;

view.ShowTimescale(Timescales.Weeks);