Skip to main content

DxScheduler.WorkDays Property

Specifies days assigned to a workweek.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(SchedulerWeekDays.WorkDays)]
[Parameter]
public SchedulerWeekDays WorkDays { get; set; }

Property Value

Type Default Description
SchedulerWeekDays WorkDays

A SchedulerWeekDays enumeration value.

Available values:

Name Description Value
Sunday

Specifies Sunday.

1

Monday

Specifies Monday.

2

Tuesday

Specifies Tuesday.

4

Wednesday

Specifies Wednesday.

8

Thursday

Specifies Thursday.

16

Friday

Specifies Friday.

32

Saturday

Specifies Saturday.

64

WeekendDays

Specifies Saturday and Sunday.

65

WorkDays

Specifies the days from Monday to Friday.

62

EveryDay

Specifies every day.

127

Remarks

Use the WorkDays property to specify the working days of the week. The property accepts the SchedulerWeekDays enumeration values. For example, to set working days to Monday, Wednesday, and Thursday, use the following syntax:

<DxScheduler 
    WorkDays="@(SchedulerWeekDays.Monday | SchedulerWeekDays.Wednesday | SchedulerWeekDays.Thursday)"
    DataStorage="@DataStorage">
    <DxSchedulerWeekView/>
</DxScheduler>

Run Demo: Scheduler — Week View

See Also