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 monthFebruary 2026Next monthNext year
SunMonTueWedThuFriSat
061234567
07891011121314
0815161718192021
0922232425262728
101234567
11891011121314

Disabled dates are defined by a list

Previous yearPrevious monthFebruary 2026Next monthNext year
SunMonTueWedThuFriSat
061234567
07891011121314
0815161718192021
0922232425262728
101234567
11891011121314

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