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

drag and drop for datapoints

2 Answers 233 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Mikk
Top achievements
Rank 1
Mikk asked on 01 May 2013, 12:27 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 06 May 2013, 05:02 PM
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.

0
Mikk
Top achievements
Rank 1
answered on 09 May 2013, 11:59 AM
Thanks a lot!
This is exactly what i was looking for.. and much shorter solution than i thought it would be. 

greets,
Mikk
Tags
ChartView
Asked by
Mikk
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Mikk
Top achievements
Rank 1
Share this question
or