Skip to content

Commit

Permalink
DatePicker year DropDown should respect Culture
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Sep 16, 2024
1 parent 828b423 commit 03f6206
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Radzen.Blazor/RadzenDatePicker.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
Change="@((args) => { SetMonth(int.Parse(args.ToString())); })"/>
<RadzenDropDown @ref="yearDropDown" class="rz-calendar-year-dropdown" TabIndex="@TabIndex"
TValue="int" Value="@CurrentDate.Year" Disabled="@Disabled" Data="@years" TextProperty="Name" ValueProperty="Value"
Change="@((args) => { SetYear(int.Parse(args.ToString())); })"/>
Change="@((args) => { SetYear(int.Parse(args.ToString())); })">
<Template>
@Culture.Calendar.GetYear(new DateTime(context.Value,1,1))
</Template>
</RadzenDropDown>
</div>
</div>
@if(ShowDays)
Expand Down

0 comments on commit 03f6206

Please sign in to comment.