Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Material
Material Compact
Office 365
Show All Themes
v
...v

Custom Disabled Dates

Disabled dates are defined by custom rules

Previous yearPrevious monthJanuary 2025Next monthNext year
SunMonTueWedThuFriSat
012930311234
02567891011
0312131415161718
0419202122232425
052627282930311
062345678

Disabled dates are defined by a list

Previous yearPrevious monthJanuary 2025Next monthNext year
SunMonTueWedThuFriSat
012930311234
02567891011
0312131415161718
0419202122232425
052627282930311
062345678
Did this demo address your needs?
If you’d like us to extend this demo further, please describe your needs below.
Thank you in advance for your cooperation.
SEND FEEDBACK

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
Multi-Use Site Controls