Skip to main content
Tab

CalendarProperties.DayDisabledStyle Property

Gets the style properties of the days disabled for selection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public CalendarElementStyle DayDisabledStyle { get; }

Property Value

Type Description
CalendarElementStyle

A CalendarElementStyle object containing the style settings.

Remarks

The calendar control allows you to disable the selection of specific days by using the client-side ASPxClientCalendar.CustomDisabledDate event, server-side ASPxCalendar.CustomDisabledDate event, or the CalendarProperties.DisabledDates collection.

Use the DayDisabledStyle property to access style settings defining the appearance of disabled days in the calendar.

Note that the DayDisabledStyle property does not affect the style of the days that don’t belong to the date range allowed for selection (limited by the CalendarProperties.MinDate and CalendarProperties.MaxDate properties). To specify the style settings for such days, use the CalendarProperties.DayOutOfRangeStyle property.

Note

The DayDisabledStyle property synchronizes its value with the editor’s ASPxCalendar.DayDisabledStyle property.

See Also