• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Disabled Dates in ASP.NET MVC Calendar Control

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.

DEMO
SOURCE

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 section.