Tab

ASPxDateEdit.DisabledDates Property

Provides access to a date edit's collection of disabled dates.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(typeof(DateTimeCollection), "")]
public DateTimeCollection DisabledDates { get; }
<DefaultValue(GetType(DateTimeCollection), "")>
Public ReadOnly Property DisabledDates As DateTimeCollection

Property Value

Type Default Description
DateTimeCollection

String.Empty

A DateTimeCollection object that is a collection of dates to be disabled in a date edit control.

Remarks

The DisabledDates property stores a collection of DateTime objects that denote disabled dates. It provides methods that allow you to add new and remove existing dates. Individual columns can be accessed using indexed notation.

Note, that dates specified by the DisabledDates collection are disabled on both the client and server sides.

You can use the client-side ASPxClientDateEdit.CalendarCustomDisabledDate and server-side ASPxDateEdit.CalendarCustomDisabledDate events to disable dates at runtime.

See Also