Disable the Blazor DateTimePicker Component

28 Feb 20221 minute to read

To disable the DateTimePicker, set its Enabled property to false.

The following code demonstrates the disabled component.

@using Syncfusion.Blazor.Calendars

<SfDateTimePicker TValue="DateTime?" Enabled=false Value='@DateTimeValue'></SfDateTimePicker>

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

Disable State in Blazor DateTimePicker