A newer version of this page is available. Switch to the current version.

SchedulerControl.ActiveViewType Property

Gets or sets the type of the View which is currently used by the Scheduler to show its data.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll

Declaration

[DefaultValue(SchedulerViewType.Day)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public SchedulerViewType ActiveViewType { get; set; }

Property Value

Type Default Description
SchedulerViewType

Day

A SchedulerViewType enumeration value specifying the active View type.

Available values:

Name Description
Day

Specifies the DayView. This view lets end-users schedule and view appointments by day.

Week

Specifies the WeekView. This view lets end-users schedule and view appointments by week in a compact form.

Month

Specifies the MonthView. This view lets end-users schedule and view appointments across several weeks.

WorkWeek

Specifies the WorkWeekView. This view displays appointments for the working days in a particular week.

Timeline

Specifies the TimelineView. This view displays appointments as horizontal bars along the timescales, and provides end-users with a clearer overview for scheduling purposes.

Gantt

Specifies the GanttView. This view lets end-users schedule and view appointments as tasks with dependencies and show information on task completion status.

FullWeek

Specifies the FullWeekView. This view allows end-users to schedule and view appointments by the entire week.

Agenda

Specifies the AgendaView. This view allows end-users to list appointments by day.

Remarks

To access the current View of the scheduler use the SchedulerControl.ActiveView property.

Examples

This example demonstrates how to programmatically change the Scheduler's view. To do this you should change the value of the SchedulerControl.ActiveViewType property. For instance, changing this property's value to SchedulerViewType.Week will force the scheduler to use its SchedulerControl.WeekView options.

using DevExpress.XtraScheduler;
// ...

// Switch the Scheduler to the Day View mode.
schedulerControl1.ActiveViewType = SchedulerViewType.Day;

// Switch the Scheduler to the Work Week View mode.
schedulerControl1.ActiveViewType = SchedulerViewType.WorkWeek;

// Switch the Scheduler to the Week View mode.
schedulerControl1.ActiveViewType = SchedulerViewType.Week;

// Switch the Scheduler to the Month View mode.
schedulerControl1.ActiveViewType = SchedulerViewType.Month;
See Also