Back to Devexpress

ASPxCalendar.DayDisabledStyle Property

aspnet-devexpress-dot-web-dot-aspxcalendar-20a21bad.md

latest2.3 KB
Original Source

ASPxCalendar.DayDisabledStyle Property

Gets the style properties of the days for which selection is disabled.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public CalendarElementStyle DayDisabledStyle { get; }
vb
Public ReadOnly Property DayDisabledStyle As CalendarElementStyle

Property Value

TypeDescription
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, and the ASPxCalendar.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 ASPxCalendar.MinDate and ASPxCalendar.MaxDate properties). To specify the style settings for such days, use the ASPxCalendar.DayOutOfRangeStyle property.

Note

This property is a wrapper of the CalendarProperties.DayDisabledStyle property.

See Also

Calendar

DayOutOfRangeStyle

ASPxCalendar Class

ASPxCalendar Members

DevExpress.Web Namespace