Back to Devexpress

DxScheduler.Views Property

blazor-devexpress-dot-blazor-dot-dxscheduler-60ab7add.md

latest3.0 KB
Original Source

DxScheduler.Views Property

Specifies the Scheduler’s view collection.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RenderFragment Views { get; set; }

Property Value

TypeDescription
RenderFragment

A collection of views (UI fragments).

|

Remarks

The Scheduler can contain the following views:

If you do not use templates in the Scheduler, you can specify views directly between the <DxScheduler> and </DxScheduler> tags.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             ActiveViewType="SchedulerViewType.WorkWeek">
    <DxSchedulerWorkWeekView VisibleTime="@(new DxSchedulerTimeSpanRange(TimeSpan.FromHours(8), 
                              TimeSpan.FromHours(19)))">
        @*...*@
    </DxSchedulerWorkWeekView>
</DxScheduler>

When you define templates (for instance, use the AppointmentFormLayout or the AppointmentCompactFormLayout property), you should use the Views property to define views.

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             ActiveViewType="SchedulerViewType.WorkWeek">
    <Views>
        <DxSchedulerWorkWeekView VisibleTime="@(new DxSchedulerTimeSpanRange(TimeSpan.FromHours(8), 
                                 TimeSpan.FromHours(19)))">
            @*...*@
        </DxSchedulerWorkWeekView>
    </Views>
    <AppointmentFormLayout >
        <DxSchedulerSubjectFormLayoutItem></DxSchedulerSubjectFormLayoutItem>
        <DxSchedulerAllDayFormLayoutItem></DxSchedulerAllDayFormLayoutItem>
        @*...*@
    </AppointmentFormLayout>
</DxScheduler>

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace