drag and drop for datapoints

3 posts, 1 answers
  1. Mikk
    Mikk avatar
    8 posts
    Member since:
    May 2013

    Posted 01 May 2013 Link to this post

    Hello,

    im interested in converting an existing usercontrol which is made with the microsoft charts to the telerik Chartview. 
    For that i would need the ability to drag and drop a datapoint in the displayed graph and change its position/value in the graph by dragging it.

    Is this possible with the chartview control? if so then how can i achieve this behavior? 

    In case my description isnt clear there is an example in the Forms Samples Environment of what i need to do: 
    Content Tab > Chart Features > Interactive Charting > Selection > Changing values by dragging.
    http://archive.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591

    thanks in Advance,
    Mikk
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 06 May 2013 Link to this post

    Hello Mikk,

    The RadCartesianChart does not support the What-If feature out of the box. However, you ca create a custom solution for it. You can use the conversion api of the chart to find out the exact horizontal and vertical values where the mouse is. You will also need to attach handlers for the MouseDown, MouseUp, MouseMove and MouseLeave events. I have attached a simple project to demonstrate one way to go.

    Kind regards,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Mikk
    Mikk avatar
    8 posts
    Member since:
    May 2013

    Posted 09 May 2013 Link to this post

    Thanks a lot!
    This is exactly what i was looking for.. and much shorter solution than i thought it would be. 

    greets,
    Mikk
Back to Top