Getting the X-Y values on mouseover

2 posts, 0 answers
  1. Jake
    Jake avatar
    7 posts
    Member since:
    Sep 2011

    Posted 27 Oct 2011 Link to this post

    How would I get the X-Y values for a SeriesMapping on mouseover? I'd like to display the values somewhere other than a ToolTip, so enabling tooltips is not my solution. I'm using MVVM, so a codebehind solution, or any UI Element access (i.e. anything requiring System.Windows) is not allowable; however, I would like to be able to use these values in the ViewModel.

    One solution I was considering was using a transparent CustomGridLine with a mouseMoved trigger attached; however, I'm not sure how I would access the SeriesMapping in the ViewModel without needing to use System.Windows to get the Chart itself first.



    EDIT: I found this article, but it requires UIElement access: I want to do something similar to this, except cutting out the need for Telerik.Windows namespace and adding snapping to the SeriesMappings on the chart.

  2. Peshito
    Peshito avatar
    585 posts

    Posted 01 Nov 2011 Link to this post

    Hi Jake,

    The chart does not support such behavior. The closest approach is the one you have mentioned earlier in your post.

    All the best,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top