Search results

Customization in Blazor DateRangePicker component

08 Apr 2021 / 1 minute to read

The DateRangePicker is available for UI customization that can be achieved by using the available properties and events in the component.

First day of week

Start day in a week will differ based on the culture, but you can also customize this based on the application needs. For this, use the FirstDayOfWeek property. By default, first day of a week in en-US is Sunday. In the following example, it is customized to Wednesday with the help of this property.

Copied to clipboard
@using Syncfusion.Blazor.Calendars

<SfDateRangePicker TValue="DateTime?" Placeholder="Select a range" FirstDayOfWeek=3></SfDateRangePicker>

The output will be as follows.