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.v20.1.dll

Declaration

public SchedulerViewRepository Views { get; }
Public ReadOnly Property Views As SchedulerViewRepository

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

See Also