This is a migrated thread and some comments may be shown as answers.

DataPoint click events

3 Answers 229 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexis
Top achievements
Rank 1
Alexis asked on 27 Jan 2012, 07:45 AM
Dear Telerik,

I'm currently reviewing the beta ChartView component, and let me say, I think it's great. I have however struck a hurdle I'm not sure how to deal with.

I have a line series, the datapoints of which have a custom template. I need to respond to a click event (MouseLeftButtonDown) on these custom datapoints, but the events don't trigger.

I've tried using the ChartSelectionBehavior, but it doesn't seem to work.

Any ideas?

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 01 Feb 2012, 10:14 AM
Hello Alexis,

Currently it is not possible to respond to a custom click event of an element (e.g. Button) that is placed within the LineSeries.PointTemplate, however, you should be able to use the ChartSelectionBehavior to detect the "selection" action in the RadCartesianChart.SelectionChanged event (note that the point marker does not utilize the RadCartesianChart.SelectionPalette colors at the moment and it will not look "selected" out of the box but the SelectionChanged event will be raised properly -- the SelectionPalette is applied automatically to series that render separate items like bars, scatter points, etc.).

Our developers are aware of this interactivity limitation and will address it by Q1 2012 SP1 release at the latest.


Regards,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Mark
Top achievements
Rank 1
answered on 17 Jul 2012, 01:08 AM
I am adding DataPoint from code-behind. And want to move a DataPoint around using mouse. How could I achieve that. I am using the ChartView control in 2012 Q2 package. Is it doable or not at all?

Many thanks,
Mark
0
Giuseppe
Telerik team
answered on 19 Jul 2012, 12:41 PM
Hello Mark,

The current version of RadChartView does not support such customization and it would not be possible to achieve the desired effect. We are currently working on a new ChartView feature for Q3 2012 (annotations support) and we will forward your feedback to our developers so they can consider enabling this scenario as part of the annotation effort as well (e.g. provide public methods for conversion between physical pixels and data units that can be used to achieve this functionality).

If this requirement is critical to your project, you might consider using the RadChart control instead -- see the attached sample application that demonstrates what-if scenario for Line series.


All the best,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Alexis
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Mark
Top achievements
Rank 1
Share this question
or