Skip to main content

WebChartControl.SelectedItemsChanged Event

Occurs after chart items are selected.

Namespace: DevExpress.XtraCharts.Web

Assembly: DevExpress.XtraCharts.v24.1.Web.dll

NuGet Package: DevExpress.Web.Visualization

Declaration

public event SelectedItemsChangedEventHandler SelectedItemsChanged

Event Data

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

Property Description
Action Gets an action which describes how the collection has been changed.
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.

Remarks

Use the SelectedItemsChanged event to customize the WebChartControl when the chart items including business data objects (if the control is connected to a data source) are selected.

For instance, you can display only bar series which correspond to the selected pie segments:

SelectedItems

 <dx:WebChartControl ID="WebChartControlPie" EnableCallBacks="False" runat="server" Height="250px" Width="700px" CrosshairEnabled="False" RenderFormat="Svg"
                ClientInstanceName="chartTotal" OnObjectSelected="WebChartControlPie_ObjectSelected" DataSourceID="chartDataSource1"
                SelectionMode="Multiple" SeriesSelectionMode="Point" OnSelectedItemsChanged="WebChartControlPie_SelectedItemsChanged">

 </dx:WebChartControl>
See Also