Search results

Disable the component

DateRangePicker can be inactivated on a page. By setting Enabled value to false will disable the component completely from all the user interactions including in the form post. The following code demonstrates the disabled component.

@using Syncfusion.EJ2.Blazor.Calendars

<EjsDateRangePicker Enabled=false StartDate='@Start' EndDate='@End'></EjsDateRangePicker>

@code {
    public DateTime Start { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 20);
    public DateTime End { get; set; } = new DateTime(DateTime.Now.Year, DateTime.Now.Month + 1, 25);
}

The output will be as follows.

DateRangePicker