Search results

Disabled the DatePicker Component in Blazor DatePicker component

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.

datepicker