Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.ActiveViewChanging Event

Occurs when the Scheduler control is changing its active view.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public event ActiveViewChangingEventHandler ActiveViewChanging

#Event Data

The ActiveViewChanging event's data class is ActiveViewChangingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether to cancel switching to another Scheduler view.
NewView Gets the new value of the SchedulerControl.ActiveView property.
OldView Gets the old value of the SchedulerControl.ActiveView property.

#Remarks

Handle the ActiveViewChanging event to perform any actions every time the scheduler’s active view is changing. The scheduler control can switch between views by executing certain commands or changing the SchedulerControl.ActiveViewType property.

Tip

Set the ActiveViewChangingEventArgs.Cancel to true to prevent switching views.

See Also