ASPxScheduler.Views Property
Contains the settings of the Views that are used to represent information within the ASPxScheduler control.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v18.1.dll
Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public SchedulerViewRepository Views { get; }
Property Value
Type | Description |
---|---|
SchedulerViewRepository | A SchedulerViewRepository object which stores the settings of the calendar Views. |
Remarks
The ASPxScheduler control provides a number of calendar Views that are used to represent information on appointments in a specific manner. You can use the Views property to access the settings of all the available views. For instance, the SchedulerViewRepository.DayView property contains the settings of the Day View that allows end-users to schedule and display appointments by day.
The ASPxScheduler object also has a number of properties which are synchronized with the corresponding properties (Views) of the SchedulerViewRepository object. Although these properties are not visible via the Properties window at design time, they can be accessed via code. For instance, the ASPxScheduler.DayView property is synchronized with the SchedulerViewRepository.DayView property.
The currently selected View is determined by the ASPxScheduler.ActiveViewType property. Use this property to select another View.
<dx:ASPxScheduler id="ASPxScheduler1" runat="server" >
<Views>
<DayView ResourcesPerPage="1" DayCount="3">
...
</DayView>
<WeekView ResourcesPerPage="1">
</WeekView>
<MonthView>
</MonthView>
</Views>
...
</dx:ASPxScheduler>
Online Example
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Views 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.