Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Custom Disabled Dates

Disabled dates are defined by custom rules

Previous yearPrevious monthOctober 2025Next monthNext year
SunMonTueWedThuFriSat
402829301234
41567891011
4212131415161718
4319202122232425
442627282930311
452345678

Disabled dates are defined by a list

Previous yearPrevious monthOctober 2025Next monthNext year
SunMonTueWedThuFriSat
402829301234
41567891011
4212131415161718
4319202122232425
442627282930311
452345678

The DevExpress ASP.NET Calendar (ASPxCalendar) control allows you to disable the selection of specific days by end-users. To specify the dates to be disabled, the control provides the following two approaches, which can be used together or separately.

  • The client-side CustomDisabledDate and server-side CustomDisabledDate events allow you to disable the selection of dates when they can be defined by custom rules. In this demo, the leftmost calendar control uses these events to disable all dates that fall on a Wednesday.
  • The DisabledDates collection allows you to disable random dates. In this demo, the rightmost calendar control uses this collection to specify a list of disabled dates.
Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxEditorsDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxEditorsDemos