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 2020Next monthNext year
SunMonTueWedThuFriSat
4027282930123
4145678910
4211121314151617
4318192021222324
4425262728293031
451234567

Disabled dates are defined by a list

Previous yearPrevious monthOctober 2020Next monthNext year
SunMonTueWedThuFriSat
4027282930123
4145678910
4211121314151617
4318192021222324
4425262728293031
451234567

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.