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.
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.
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
Change the active view via Bar UI
Change the active view via Ribbon UI
- or -
- or -