Skip to main content

DxSchedulerDayViewBase.ShowWorkTimeOnly Property

Specifies whether the scheduler displays only working hours in a View.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(false)]
[Parameter]
public bool ShowWorkTimeOnly { get; set; }

Property Value

Type Default Description
Boolean false

true to display only working hours; otherwise, false

Remarks

Use this property to display only the WorkTime.

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

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