Tab
A newer version of this page is available. Switch to the current version.

DateEditRangeSettings.CalendarColumnCount Property

Gets or sets the number of months displayed in dropdown calendars of the DateEdit editors in date range mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(2)]
public int CalendarColumnCount { get; set; }
<DefaultValue(2)>
Public Property CalendarColumnCount As Integer

Property Value

Type Default Description
Int32

2

An integer value that specifies the number of displayed months.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to CalendarColumnCount
ASP.NET Controls and MVC Extensions ASPxDateEdit
.DateRangeSettings.CalendarColumnCount
DateEditProperties
.DateRangeSettings.CalendarColumnCount
MVCxColumnDateEditProperties
.DateRangeSettings.CalendarColumnCount
MVCxDateEdit
.DateRangeSettings.CalendarColumnCount
MVCxDateEditProperties
.DateRangeSettings.CalendarColumnCount
MVCxDateEditProperties
.DateRangeSettings.CalendarColumnCount
RibbonDateEditProperties
.DateRangeSettings.CalendarColumnCount
ASP.NET Bootstrap Controls BootstrapDateEdit
.DateRangeSettings.CalendarColumnCount
BootstrapDateEditProperties
.DateRangeSettings.CalendarColumnCount

Remarks

The ASPxDateEdit control provides the capability to select a date range.

By default, in date range mode, date editors are intended to display two months in their drop-down calendars. This behavior is defined by the CalendarColumnCount property of a date editor that displays the end date (the default value of the CalendarColumnCount property is 2).

NOTE

For ASP.NET MVC DateEditor.

The start date editor does not automatically apply the CalendarColumnCount property value to itself. To accomplish this task, use the following code.


@Html.DevExpress().DateEdit(
    settings => {
        settings.Name = "dateEditRangeStart";
        settings.Properties.CalendarProperties.Columns = 2;
    }).GetHtml()

You can use the CalendarColumnCount and DateEditRangeSettings.MaxDayCount properties to limit the number of days in a range.

NOTE

The editor's date range settings should specified for the end-date ASPxDateEdit control. The properties specified for the start-date editor are not in effect.

See Also