Back to Devexpress

DxSchedulerDayViewBase.ShowWorkTimeOnly Property

blazor-devexpress-dot-blazor-dot-base-dot-dxschedulerdayviewbase-de1e27d2.md

latest1.7 KB
Original Source

DxSchedulerDayViewBase.ShowWorkTimeOnly Property

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

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

true to display only working hours; otherwise, false

|

Remarks

Use this property to display only the WorkTime.

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

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

DxSchedulerDayViewBase Class

DxSchedulerDayViewBase Members

DevExpress.Blazor.Base Namespace