Skip to main content

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

NuGet Package: DevExpress.Web


public CalendarElementStyle DayOutOfRangeStyle { get; }

Property Value

Type Description

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


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.


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.


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

See Also