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

drag and drop for datapoints

2 Answers 71 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 08 Nov 2017, 10:00 AM

Hello,

I would like to implement drag and drop of datapoints within a Cartesian chart.

 

I see what is suggested for WPF:

https://www.telerik.com/forums/drag-and-drop-for-datapoints

<<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.>>

 

and Silverlight :

https://www.telerik.com/forums/drag-points-up-or-down-in-a-line-series

<<Basically you need to add mouse event handling logic to the line series point marks and use the built-in methods provided by the chart axis for physical-to-data-unit conversion.>>

 

Is the same approach also possible for the UWP solution?

 

Thanks,

Leo

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 13 Nov 2017, 08:41 AM
Hi Leo,

In order to achieve the desired by you functionality in UWP you need to use the Pointer events. We have created a sample project that demonstrates how to implement the events in order the drag and drop be invoked as needed - please, check it.

Hope this helps.

Regards,
Nasko
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Leo
Top achievements
Rank 1
answered on 22 Nov 2017, 01:08 PM
Super!! Thank you very much!
Tags
Chart
Asked by
Leo
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Leo
Top achievements
Rank 1
Share this question
or