New to Telerik UI for WinForms? Start a free 30-day trial

Arguments class used when the SelectionChanging event is fired.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public sealed class SelectionEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsSelectionEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes selection-changing event data with the current collection and proposed dates.

C#
public SelectionEventArgs(DateTimeCollection dates, List<DateTime> newDates)
Parameters:datesDateTimeCollection

The calendar's current selected-date collection.

newDatesList<DateTime>

The dates proposed for selection; handlers can cancel the change through Cancel.

Initializes selection-changing event data for the current selected-date collection.

C#
public SelectionEventArgs(DateTimeCollection dates)
Parameters:datesDateTimeCollection

The calendar's selected-date collection.

Properties

Gets a refference to the SelectedDates collection, represented by the Telerik RadCalendar component that rise the SelectionChanging event.

C#
public DateTimeCollection Dates { get; }

Gets a refference to the Dates which will be selected

C#
public List<DateTime> NewDates { get; }