Back to Devexpress

ASPxClientWebChartControl.ObjectSelected Event

aspnet-js-aspxclientwebchartcontrol.md

latest3.8 KB
Original Source

ASPxClientWebChartControl.ObjectSelected Event

Occurs on the client side when any chart element is selected.

Declaration

ts
ObjectSelected: ASPxClientEvent<ASPxClientWebChartControlHotTrackEventHandler<ASPxClientWebChartControl>>

Event Data

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

PropertyDescription
absoluteXGets the X-coordinate of the hit test point, relative to the top left corner of the Web Page containing this chart.
absoluteYGets the Y-coordinate of the hit test point, relative to the top left corner of the Web Page containing this chart.
additionalHitObjectProvides access on the client side to the object, which is in some way related to the object being hit. The returned value depends on the ASPxClientWebChartControlHotTrackEventArgs.hitObject type and hit point location.
cancelGets a value indicating whether the hot-tracking or object selection should be canceled.
chartProvides access on the client side to the chart and all its elements.
hitInfoGets details on the chart elements located at the point where an end-user has clicked when hot-tracking or selecting a chart element on the client side.
hitObjectProvides access on the client side to the chart element, for which the event was raised.
htmlElementGets the HTML object that contains the processed item.
processOnServerSpecifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs.
xGets the X-coordinate of the hit test point, relative to the top left corner of the chart.
yGets the Y-coordinate of the hit test point, relative to the top left corner of the chart.

Remarks

An end-user is able to select some items of the ASPxClientWebChartControl at runtime if the WebChartControl.EnableClientSideAPI property is set to true. Handle the ObjectSelected event if you want to perform some specific actions when an end-user selects a chart’s elements, or if you want to disable the selection of particular elements. Note that the currently selected element of the chart can be accessed via the ASPxClientWebChartControlHotTrackEventArgs.hitObject and ASPxClientWebChartControlHotTrackEventArgs.additionalHitObject properties.

For more information, refer to Handling Client-side Scripts.

See Also

ObjectHotTracked

ASPxClientWebChartControl Class

ASPxClientWebChartControl Members