Disabled the Blazor DatePicker Component

17 Aug 20211 minute to read

To disable the DatePicker, use its Enabled property.

The following code demonstrates the DatePicker in disabled state.

@using Syncfusion.Blazor.Calendars

<SfDatePicker TValue="DateTime?" Enabled=false Value="@DateValue"></SfDatePicker>

@code {
    public DateTime? DateValue {get;set;} = DateTime.Now;
}

The output will be as follows.

Disable State in Blazor DatePicker