Disabled the Blazor DatePicker Component

8 Aug 20231 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;
}

Disable State in Blazor DatePicker