Hi Douglas,
Greetings from Syncfusion support.
Yes, we can able to disable the date by using our OnRenderDayCell event. Kindly refer the below code example. Here we have disabled the Sundays based on your requirement.
<EjsDatePicker TValue="DateTime?" ID="date">
<DatePickerEvents TValue="DateTime?" OnRenderDayCell="@DisableSundays"></DatePickerEvents>
</EjsDatePicker>
@code {
public void DisableSundays(RenderDayCellEventArgs args) {
if ((int)args.Date.DayOfWeek == 0) {
args.IsDisabled = true;
}
}
} |
Also, thanks for your valuable suggestion. We will add this information in our documentation and intimate you once the document has been published. We appreciate your patience until then
Regards,
Sureshkumar P