This question is locked. New answers and comments are not allowed.
I have an application that has 2 charts, where each chart definition is "StackedBarSeriesDefinition".
What I would like to be able to do is drag one of the dataseries from one chart to the other chart, and vice versa. Is this possible?
Thanks,
Dan
What I would like to be able to do is drag one of the dataseries from one chart to the other chart, and vice versa. Is this possible?
Thanks,
Dan
8 Answers, 1 is accepted
0
Accepted
Hello Dan,
I am attaching an example application where I have implemented DragDrop between two charts. Is this what you needed? The example shows how this is done with 2 Charts, but you can easily see how this can be done for more.
Here is a screen:
On a side note, I could not think of a scenario where this kind of DragDrop can be used. Could you please share what scenario does this support?
Kind regards,
Miroslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am attaching an example application where I have implemented DragDrop between two charts. Is this what you needed? The example shows how this is done with 2 Charts, but you can easily see how this can be done for more.
Here is a screen:
On a side note, I could not think of a scenario where this kind of DragDrop can be used. Could you please share what scenario does this support?
Kind regards,
Miroslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dan
Top achievements
Rank 1
answered on 28 Jul 2009, 12:52 PM
Extremely helpful. I really appreciate including the sample solution as well. Much appreciated!
Dan
Dan
0
Dan
Top achievements
Rank 1
answered on 29 Jul 2009, 01:06 AM
I attached zip code works great, but i when i changed my references to point to the "RadControls for Silverlight Q1 2009" assemblies, the code will not compile.
The following code will not compile:
RadDragAndDropManager.AddDragQueryHandler(leftChart, OnDragQuery);
RadDragAndDropManager.AddDragInfoHandler(leftChart, OnDragInfo);
RadDragAndDropManager.AddDragQueryHandler(rightChart, OnDragQuery);
RadDragAndDropManager.AddDragInfoHandler(rightChart, OnDragInfo);
I searched the forums on "AddDragQueryHandle" looking for a suggested work around and could not find anything. any suggestions?
Thanks,
Dan
0
Accepted
Hello Dan,
Yes, there is an easy workaround. These static methods were added to DragDrop with the port to WPF because this is a standard pattern in WPF when creating routed events and they also appeared in Silverlight for code compatibility.
In SL and in WPF you can replace it with the following equivalent:
leftChart.AddHandler(RadDragAndDropManager.DragQueryEvent, new
EventHandler<DragDropQueryEventArgs>(OnDragQuery));
Similarly for the other events. Just make sure that you have this using, because AddHandler is an extension method:
using Telerik.Windows;
Do come back to us if you have more questions or feedback,
All the best,
Miroslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Yes, there is an easy workaround. These static methods were added to DragDrop with the port to WPF because this is a standard pattern in WPF when creating routed events and they also appeared in Silverlight for code compatibility.
In SL and in WPF you can replace it with the following equivalent:
leftChart.AddHandler(RadDragAndDropManager.DragQueryEvent, new
EventHandler<DragDropQueryEventArgs>(OnDragQuery));
Similarly for the other events. Just make sure that you have this using, because AddHandler is an extension method:
using Telerik.Windows;
Do come back to us if you have more questions or feedback,
All the best,
Miroslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dan
Top achievements
Rank 1
answered on 29 Jul 2009, 02:31 PM
Thanks, worked great.
0
Carlos Sesma
Top achievements
Rank 1
answered on 26 Oct 2010, 07:28 PM
I'd like to see an example of this drag drop functionality in combination with a chart using a list as datasource like this example
205794_stackedbarchart
could you please give some advice on how to accomplish this please?
in my case i need at least 2 charts having multiple series. and every time i try to enable dragdrop it does not work. the series just dont drag.
regards.
205794_stackedbarchart
could you please give some advice on how to accomplish this please?
in my case i need at least 2 charts having multiple series. and every time i try to enable dragdrop it does not work. the series just dont drag.
regards.
0
Carlos Sesma
Top achievements
Rank 1
answered on 26 Oct 2010, 11:59 PM
I figured it out by my self, thank you.
0
PEIYANG
Top achievements
Rank 1
answered on 01 Jul 2012, 06:01 PM
How to drag the line in the chart?not two chart,just one chart!