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

Example of Disabled Dates in ASP.NET Core DatePicker 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 DatePicker.

DEMO
SOURCE

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

More information on the disabled dates can be found in the documentation section.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE