New to Telerik UI for WPFStart a free 30-day trial

How do I Set FirstVisibleTime on DayView and WeekView Definitions

Updated on Sep 15, 2025

Environment

Product Version2019.2.618
ProductRadScheduleView for WPF

Description

How to change the FirstVisibleTime of RadScheduleView when the active view definition gets changed.

Solution

Create a custom control that derives from RadScheduleView and override the OnActiveViewDefinitionChanged. Then reset the FirstVisibleTime property.

C#
	public class CustomScheduleView : RadScheduleView
	{
		protected override void OnActiveViewDefinitionChanged(ViewDefinitionBase oldValue, ViewDefinitionBase newValue)
		{
			base.OnActiveViewDefinitionChanged(oldValue, newValue);

			// reset the first visible time
			var time = this.FirstVisibleTime;
			this.FirstVisibleTime = TimeSpan.Zero;
			this.FirstVisibleTime = time;
		}
	}
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support