Search results

Set the Readonly

The following code demonstrates how to set Readonly in DatePicker component. You can achieve this by using the Readonly property.

@using Syncfusion.EJ2.Blazor.Calendars

<EjsDatePicker Readonly=true Value="@DateValue"></EjsDatePicker>

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

The output will be as follows.

datepicker