Occurs before the Chart Control’s selected items collection is changed, enabling a handler to cancel the selection change.
NuGet Package: DevExpress.Web.Visualization
public event SelectedItemsChangingEventHandler SelectedItemsChanging
Public Event SelectedItemsChanging As SelectedItemsChangingEventHandler
The SelectedItemsChanging event's data class is SelectedItemsChangingEventArgs. The following properties provide information specific to this event:
|Action||Gets an action which describes how the collection has been changed.|
|Cancel||Gets or sets the value identifying whether the selection change is canceled.|
|NewItems||Provides access to a collection of new selected chart elements (series and series points) and business data objects if a Chart Control or a series is bound to a data source.|
|OldItems||Provides access to previously selected chart elements (series and series points) and business data objects if a Chart Control or a series is bound to a data source.|
This event fires before the selection is changed. It can be handled to customize the Chart control’s selection. The event’s Cancel parameter that allows you to prevent the chart item from being selected.