DxDateRangePicker<T>.WeekNumberRule Property
Specifies the first week of the year.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
[Parameter]
public WeekNumberRule WeekNumberRule { get; set; }
#Property Value
Type | Description |
---|---|
Week |
A Week |
Available values:
Name | Description |
---|---|
Default | Specified by the system’s Calendar |
First |
The week that contains the 1st of January. |
First |
The first full week. |
First |
The first week that has a majority (4 or more) of its days in January. |
#Remarks
The Blazor Date Range Picker displays week numbers on the left side of the drop-down calendar. The WeekNumberRule
property defines the first week of the year.
The following example sets this property to WeekNumberRule.FirstFullWeek
:
<DxDateRangePicker StartDate="@StartDate"
EndDate="@EndDate"
WeekNumberRule="WeekNumberRule.FirstFullWeek"/>
@code {
DateTime StartDate = DateTime.Today;
DateTime EndDate = DateTime.Today.AddDays(7);
}