Skip to main content
A newer version of this page is available. .
Tab

ASPxCalendar.DayOutOfRangeStyle Property

Gets the style properties of the days that don’t belong to the date range allowed for selection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public CalendarElementStyle DayOutOfRangeStyle { get; }

Property Value

Type Description
CalendarElementStyle

A CalendarElementStyle object defining the appearance of the days that cannot be selected.

Remarks

Use the DayOutOfRangeStyle property to access style settings that define the appearance of days which don’t belong to the date range allowed for selection (limited by the ASPxCalendar.MinDate and ASPxCalendar.MaxDate properties).

The image below displays the background color changed for dates that don’t fall into the range within the 8th and 22nd of October.

ASPxCalendar_DayOutOfRangeStyle.png

To specify the style settings of days disabled for selection by using the client-side ASPxClientCalendar.CustomDisabledDate event, server-side ASPxCalendar.CustomDisabledDate event, or the ASPxCalendar.DisabledDates collection, use the ASPxCalendar.DayDisabledStyle.

Note

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

See Also