DxCalendar<T>.WeekNumberRule Property

Specifies the first week of the year.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
public WeekNumberRule WeekNumberRule { get; set; }

Property Value

Type Description
WeekNumberRule

A WeekNumberRule enumeration value.

Remarks

Calendar displays week numbers on the left-hand side. The WeekNumberRule defines the first week of the year.

The example below sets this property to WeekNumberRule.FirstFullWeek.

<DxCalendar @bind-SelectedDate="@DateTimeValue" 
            WeekNumberRule="WeekNumberRule.FirstFullWeek">
</DxCalendar>

@code {
    DateTime DateTimeValue { get; set; } = new DateTime(2020,01,01);
}

Calendar - Week Number Rule

See Also