Click or drag to resize
KaxCalendarSelectedDates Property
Gets a collection of KaxDate objects (that encapsulate values of type System.DateTime) that represent the selected dates on the KaxCalendar control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public DateTimeCollection SelectedDates { get; }

Property Value

Type: DateTimeCollection
A DateTimeCollection that contains a collection of KaxDate objects (that encapsulate values of type System.DateTime) representing the selected dates on the KaxCalendar control. The default value is an empty DateTimeCollection.
Remarks

Use the SelectedDates collection to determine the currently selected dates on the KaxCalendar control.

The SelectedDate property and the SelectedDates collection are closely related. When the EnableMultiSelect property is set to false, a mode that allows only a single date selection, SelectedDate and SelectedDates[0] have the same value and SelectedDates.Count equals 1. When the EnableMultiSelect property is set to true, mode that allows multiple date selections, SelectedDate and SelectedDates[0] have the same value.

The SelectedDates property stores a collection of KaxDate objects (that encapsulate values of type System.DateTime).

When the user selects a date or date range (for example with the column or rows selectors) on the KaxCalendar control, the SelectionChanged event is raised. The selected dates are added to the SelectedDates collection, accumulating with previously selected dates. The range of dates are not sorted by default. The SelectedDate property is also updated to contain the first date in the SelectedDates collection.

You can also use the SelectedDates collection to programmatically select dates on the Calendar control. Use the Add, Remove, Clear, and SelectRange methods to programmatically manipulate the selected dates in the SelectedDates collection.

Note Both the SelectedDate property and the SelectedDates collection are updated before the SelectionChanged event is raised.You can override the dates selection by using the OnSelectionChanged event handler to manually set the SelectedDates collection. The SelectionChanged event is not raised when this collection is programmatically set.
See Also