Search results

Disable the DateTimePicker Component in Blazor Datetime Picker component

03 Aug 2021 / 1 minute to read

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

The following code demonstrates the disabled component.

Copied to clipboard
@using Syncfusion.Blazor.Calendars

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

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

The output will be as follows.