Example of Disabled Dates in ASP.NET MVC Calendar Control

Calendar
Disabled Dates

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

May 2025
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Selected Value:

Disabled Dates sample demonstrates, how to disable a specific dates in the Calendar by using the renderDayCell 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 date's are disabled by using renderDayCell.

More information on the disabled dates can be found in this documentation sectionopens in a new tab.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab