TrackBallInfo link to mouse Y

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    6 posts
    Member since:
    Oct 2014

    Posted 11 Feb 2015 Link to this post

    Hello,

    I am using the trackBallInfo template to show data very similar to the example in the Demo.
    I would like the position of the Databox inside the chart to follow the Y of the mouse.  The reason is because, if my data goes into the high range they the trackballinfo covers the line and you cannot see the chart.

    Is there a way to do this?
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 16 Feb 2015 Link to this post

    Hello Kevin,

    You can achieve your requirement customizing the approach demonstrated in our Smooth Scrolling online demo. Basically you can subscribe to the TrackInfoUpdated event of the ChartTrackBallBehavior and inside the handler you can programmatically extract the needed information and update any visual elements.

    Also in the same event handler you can take the position of the mouse and update the position of any other element(s).

    Please give this approach a try and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top