Breaking Change T1062471
Visible to All Users

Charts - The DxChartBase.PointClick event has been removed

What Changed

The PointClick event has been removed. Its functionality is moved to the DxChart.SeriesClick (DxPieChart.SeriesClick) event. You can now use the ChartSeriesClickEventArgs.Point (PieChartSeriesClickEventArgs.Point) property in the SeriesClick event handler to track series point clicks. The Point property returns null if a user clicks a series (line or area), but not a point.

Reasons for Change

The simultaneous use of the PointClick and SeriesClick events may lead to unexpected behavior.

Impact on Existing Apps

This change causes the CS0246 compiler error (The type or namespace name 'ChartPointClickEventArgs' could not be found (are you missing a using directive or an assembly reference?) if you use ChartPointClickEventArgs in the PointClick event handler's parameters.

How to Update Existing Apps

Follow the steps below to upgrade your application:

  1. Handle the DxChart.SeriesClick or DxPieChart.SeriesClick event.
  2. Use the ChartSeriesClickEventArgs.Point or PieChartSeriesClickEventArgs.Point property to obtain the point that a user clicked.

The example below shows upgraded markup:

Razor
<DxPieChart SeriesClick=@OnSeriesClick> <@*...*@> </DxPieChart> @if(ClickedPointArgs != null) { <div id="point-args"> <table> <tr> <td>Point Value:</td><td> @ClickedPointArgs.Point.Value</td> </tr> <tr> <td>Argument:</td><td> @ClickedPointArgs.Point.Argument</td> </tr> </table> </div> } @code { PieChartSeriesClickEventArgs ClickedPointArgs { get; set; } void OnSeriesClick(PieChartSeriesClickEventArgs seriesArgs) { ClickedPointArgs = seriesArgs; } }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.