Change the Active View
- 2 minutes to read
The SchedulerControl is intended to display appointments using one of the standard views. The currently active view used by the SchedulerControl can be either deliberately selected by an end-user, or changed by the SchedulerControl itself according to its internal logic. Only views with the SchedulerViewBase.Enabled property set to true are available.
The active view is changed in the following cases.
Context Menu
An end-user right-clicks anywhere within a scheduler area which is not occupied with an appointment and selects the corresponding item from the invoked context menu.
The Change View To submenu contains several items which are responsible for changing the currently active view. These items can be represented by the SchedulerMenuItemId.SwitchToDayView, SchedulerMenuItemId.SwitchToWorkWeekView, SchedulerMenuItemId.SwitchToWeekView, SchedulerMenuItemId.SwitchToMonthView, SchedulerMenuItemId.SwitchToTimelineView and SchedulerMenuItemId.SwitchToGanttView enumeration members. Their availability depends on the view’s SchedulerViewBase.Enabled property value. When a particular view is disabled, the corresponding menu item is not shown.
Date Navigator
The scheduler view is automatically switched to the most appropriate display type to show the date range which an end-user selects in the DateNavigator control. To learn more about this capability, refer to the Select Dates topic.
Bar or Ribbon UI
An end-user uses the Active View and Arrange toolbar or Ribbon page group. To learn how to provide your scheduling application with a Bar or Ribbon UI, see the Getting Started article.
Change the active view via Bar UI
Change the active view via Ribbon UI
- or -
- or -
Note
To change the scheduler view programmatically, change the value of the SchedulerControl.ActiveViewType property. See the How to: Programmatically Change the Active View document, for more information.