Customize the Start Day of the Week in DatePicker in Embedded Applications
Bold Reports offers a comprehensive solution for customizing the starting day of the week in date-time parameters using the WeekStartDay
feature in DatePicker
. With the flexibility of these properties, you can effortlessly tailor your calendar to begin on your preferred day, leading to increased productivity and a more efficient planning process.
By default, the calendar displays Sunday as the starting day of the week, as shown in the image below:
To customize the start day of the week in a Blazor application, follow these steps:
Blazor:
-
In the
BoldReportViewerOptions.cs
file, create a property to store theWeekStartDay
value. This property determines the start day of the week for the date picker:
-
In the
Index.razor
file, assign the desired value to theWeekStartDay
property. This setting ensures that the date picker starts on the desired day.
Refer to the table below for the corresponding numbers to designate the starting day of the calendar.WeekStartDay Day 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday 7 Sunday -
In the
boldreports-interop.js
file, configure the parameterSettings to include theweekStartDay
parameter.
-
Save the changes and run the application.
Java Script:
- Set the desired value for the
weekStartDay
property inparameterSettings
.
- Save the changes and run the application.