Skip to main content

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.v22.2.dll

NuGet Package: DevExpress.Web


public CalendarElementStyle DayOutOfRangeStyle { get; }

Property Value

Type Description

A CalendarElementStyle object containing the style settings.


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.


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.


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

See Also