blazor-devexpress-dot-blazor-dot-dxscheduler-60ab7add.md
Specifies the Scheduler’s view collection.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public RenderFragment Views { get; set; }
| Type | Description |
|---|---|
| RenderFragment |
A collection of views (UI fragments).
|
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.
<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.
<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