Skip to main content

DxSchedulerDayViewBase.WorkTime Property

Specifies the working time interval.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public DxSchedulerTimeSpanRange WorkTime { get; set; }

Property Value

Type Description

Specifies the working time interval.


Use this property to specify working hours.

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

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

Scheduler - A day count in Day view

If you set the ShowWorkTimeOnly property to true, the Scheduler displays the time interval specified by the WorkTime property. Otherwise, the component displays the VisibleTime interval.

Run Demo: Scheduler — View Types

See Also