GridColumnDateRangePickerSettings.CalendarColumnCount Property
Gets or sets the number of months displayed in the header filter’s dropdown calendars.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
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 Bootstrap Controls | BootstrapCardViewDataColumnHeaderFilterSettings |
|
BootstrapGridViewDataColumnHeaderFilterSettings |
|
|
ASP.NET Web Forms Controls | TreeListColumnSettingsHeaderFilter |
|
CardViewDataColumnHeaderFilterSettings |
|
|
GridViewDataColumnHeaderFilterSettings |
|
|
VerticalGridDataRowHeaderFilterSettings |
|
Remarks
When a date column’s GridDataColumnHeaderFilterSettings.Mode property is set to DateRangePicker, the column header filter displays a date range picker control, allowing end-users to specify the required date range.
By default, the end date editor in the date range picker control is intended to display two months in its drop-down calendar. This behavior is defined by the CalendarColumnCount property (the default value of the CalendarColumnCount property is 2).
<Columns>
<dx:GridViewDataTextColumn FieldName="Patient" />
<dx:GridViewDataTextColumn FieldName="Doctor" />
<dx:GridViewDataTextColumn FieldName="Clinic" />
<dx:GridViewDataDateColumn FieldName="VisitDate" Width="300px" Settings-AllowHeaderFilter="True">
<SettingsHeaderFilter>
<DateRangePickerSettings CalendarColumnCount="4" />
</SettingsHeaderFilter>
</dx:GridViewDataDateColumn>
</Columns>
Note
The CalendarColumnCount property specified for the start date editor in the date range picker control is not in effect.