Skip to main content
A newer version of this page is available. .

DxSchedulerDayViewBase.WorkTime Property

Specifies the working time interval.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public DxSchedulerTimeSpanRange WorkTime { get; set; }

Property Value

Type Description
DxSchedulerTimeSpanRange

Specifies the working time interval.

Remarks

Use this property to specify working hours.

<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
    <DxSchedulerDayView WorkTime="@WorkTime" ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>

@code {
    // ...
    DxSchedulerTimeSpanRange WorkTime = new DxSchedulerTimeSpanRange(TimeSpan.FromHours(9), TimeSpan.FromHours(18));
}

Note

If the ShowWorkTimeOnly option is set to true and the WorkTime and VisibleTime properties are set to different intervals, the Scheduler view displays the intersection of the specified intervals.

Online Demo

Scheduler — View Types

See Also