DataPoint click events

4 posts, 0 answers
  1. Alexis
    Alexis avatar
    1 posts
    Member since:
    Jun 2009

    Posted 27 Jan 2012 Link to this post

    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?
  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 01 Feb 2012 Link to this post

    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.

    the Telerik team

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

  3. Mark
    Mark avatar
    6 posts
    Member since:
    Jul 2012

    Posted 16 Jul 2012 Link to this post

    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,
  4. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 19 Jul 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top