CalendarProperties.EnableMultiSelect Property
Gets or sets a value indicating whether multiple date selection is enabled in the calendar.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
If the EnableMultiSelect property is set to true
, multiple date selection is enabled within the calendar control. To select a range of dates, an end-user should select the initial date of the selection and hold the left mouse button down while moving the mouse to the final date, or; while holding down the Shift key, click the final date in the selection. Individual dates can be added to/removed from the selection by clicking the desired date while holding down the Ctrl key. An end-user can also select entire weeks by clicking corresponding week numbers.
Selected dates are contained within the ASPxCalendar.SelectedDates collection. To manipulate the selection in code, you can use the means provided by this collection (such as the CalendarSelection.Add, CalendarSelection.AddRange, CalendarSelection.Remove and CalendarSelection.RemoveRange methods). You can use the CalendarSelection.GetEnumerator and CalendarSelection.Count collection members to iterate through all selected dates.
Note
The EnableMultiSelect property synchronizes its value with the calendar’s ASPxCalendar.EnableMultiSelect property.