DxDateEdit<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

Date Edit displays week numbers on the left side of the drop-down calendar. The WeekNumberRule property defines the first week of the year.

The example below sets this property to WeekNumberRule.FirstFullWeek.

<DxDateEdit @bind-Date="@DateTimeValue" 
            WeekNumberRule="WeekNumberRule.FirstFullWeek">
</DxDateEdit>

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

Calendar - Week Number Rule

See Also