Search results

Disable the component

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

The following code demonstrates the disabled component.

@using Syncfusion.EJ2.Blazor.Calendars

<EjsDateTimePicker Enabled=false Value='@DateTimeValue'></EjsDateTimePicker>

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

The output will be as follows.

DateTimePicker