Back to Devexpress

ASPxScheduler.ActiveViewType Property

aspnet-devexpress-dot-web-dot-aspxscheduler-dot-aspxscheduler-f480ca1d.md

latest4.3 KB
Original Source

ASPxScheduler.ActiveViewType Property

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

Namespace : DevExpress.Web.ASPxScheduler

Assembly : DevExpress.Web.ASPxScheduler.v25.2.dll

NuGet Package : DevExpress.Web.Scheduler

Declaration

csharp
[DefaultValue(SchedulerViewType.Day)]
public SchedulerViewType ActiveViewType { get; set; }
vb
<DefaultValue(SchedulerViewType.Day)>
Public Property ActiveViewType As SchedulerViewType

Property Value

TypeDefaultDescription
SchedulerViewTypeDay

A SchedulerViewType enumeration value specifying the active View type.

|

Available values:

NameDescription
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.

| | Year |

Specifies the YearView. This view displays appointments for the entire year.

|

Remarks

To access the current View of the scheduler, use the ASPxScheduler.ActiveView property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActiveViewType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-create-responsive-web-app/CS/ResponsiveWebApplication/Scheduler.aspx.cs#L15

csharp
// DXCOMMENT: Setting ViewType: a compact view (Day) for mobile devices, a large view (WorkWeek) for desktops
Scheduler.ActiveViewType = RenderUtils.Browser.Platform.IsMobileUI ? SchedulerViewType.Day : SchedulerViewType.WorkWeek;

See Also

Views

Member Table: Views

ASPxScheduler Class

ASPxScheduler Members

DevExpress.Web.ASPxScheduler Namespace