Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxSchedulerDayViewBase.WorkTime Property

Specifies the working hours for the current day.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Description
DxSchedulerTimeSpanRange

Specifies the working time interval.

#Remarks

Use this property to specify working hours for the current day. Ensure that work hours do not exceed 24 hours.

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

@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