aspnet-devexpress-dot-web-dot-calendarfastnavproperties.md
Specifies the earliest available Calendar view. For example, if the MaxView property is set to Months, the picker displays the months of a particular year and January is the earliest available Calendar view item.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(DatePickerType.NotSet)]
public DatePickerType MaxView { get; set; }
<DefaultValue(DatePickerType.NotSet)>
Public Property MaxView As DatePickerType
| Type | Default | Description |
|---|---|---|
| DatePickerType | NotSet |
One of the DatePickerType enumeration values.
|
Available values:
| Name | Description |
|---|---|
| NotSet |
The date picker type is not set. In this case:
CalendarFastNavProperties.MaxView is set to ‘Decades’.| | Days |
An end user can select a day in the calendar.
| | Months |
An end user selects a month in the calendar.
| | Years |
An end user selects a year in the calendar.
| | Decades |
An end user selects a decade in the calendar.
|
The ASPxDateEdit supports month-year picker mode. In this mode, you can specify which date component a user can select in the control.
<dx:ASPxDateEdit runat="server" ID="dateEdit2" PickerType="Months">
<CalendarProperties>
<FastNavProperties InitialView="Years" MaxView="Years" />
</CalendarProperties>
</dx:ASPxDateEdit>
Run Demo: Data Editors - Month-Year Picker
See Also
CalendarFastNavProperties Class