Back to Devexpress

WebChartControl.SelectedItemsChanging Event

aspnet-devexpress-dot-xtracharts-dot-web-dot-webchartcontrol-a145cf07.md

latest2.4 KB
Original Source

WebChartControl.SelectedItemsChanging Event

Occurs before the Chart Control’s selected items collection is changed, enabling a handler to cancel the selection change.

Namespace : DevExpress.XtraCharts.Web

Assembly : DevExpress.XtraCharts.v25.2.Web.dll

NuGet Package : DevExpress.Web.Visualization

Declaration

csharp
public event SelectedItemsChangingEventHandler SelectedItemsChanging
vb
Public Event SelectedItemsChanging As SelectedItemsChangingEventHandler

Event Data

The SelectedItemsChanging event's data class is SelectedItemsChangingEventArgs. The following properties provide information specific to this event:

PropertyDescription
ActionGets an action which describes how the collection has been changed.
CancelGets or sets the value identifying whether the selection change is canceled.
NewItemsProvides 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.
OldItemsProvides 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.

Remarks

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.

See Also

WebChartControl Class

WebChartControl Members

DevExpress.XtraCharts.Web Namespace