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 monthDecember 2024Next monthNext year
SunMonTueWedThuFriSat
491234567
50891011121314
5115161718192021
5222232425262728
012930311234
02567891011

Disabled dates are defined by a list

Previous yearPrevious monthDecember 2024Next monthNext year
SunMonTueWedThuFriSat
491234567
50891011121314
5115161718192021
5222232425262728
012930311234
02567891011

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