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

CalendarProperties.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.1.dll

Declaration

public CalendarElementStyle DayOutOfRangeStyle { get; }

Property Value

Type Description
CalendarElementStyle

A CalendarElementStyle object containing the style settings.

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 CalendarProperties.MinDate and CalendarProperties.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 CalendarProperties.DisabledDates collection, use the CalendarProperties.DayDisabledStyle.

Note

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

See Also