Search results

Disabled the DatePicker Component in Blazor DatePicker component

22 Jul 2021 / 1 minute to read

To disable the DatePicker, use its Enabled property.

The following code demonstrates the DatePicker in disabled state.

Copied to clipboard
@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.