Example of Disabled Dates in Blazor Calendar Component

Calendar / Disabled Dates

In the following example, all the weekends (Saturday and Sunday) of a month are disabled, and these dates are restricted to set or select in the Calendar.

April 2025
SMTWTFS
303112345
6789101112
13141516171819
20212223242526
27282930123
Selected date is: 4/1/2025

Disabled Dates example demonstrates, how to disable specific dates in the Calendar by using the OnRenderDayCell event. This event gets triggered on each day cell element creation that allows you to customize or disable the specific dates in the Calendar. Here, the weekend dates are disabled by using OnRenderDayCell.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE