This question is locked. New answers and comments are not allowed.
Laurent DANESI
Top achievements
Rank 1
Laurent DANESI
asked on 05 Feb 2010, 11:38 AM
Hi all,
Currently i'm using drag and drop feature as selector . But i would like the dragAnDrop not remove Dragged elements from the Drag Source. Instead i would like to be able to put in the DragAnDrop transfert operation a copy of dragged Elements.
Is that possible or DnD can't do that ?
Thank you for your support.
Laurent.
4 Answers, 1 is accepted
0
Hi Laurent DANESI,
Drag and drop is not doing the move/copy operations - it justs reports events on which the developer is taking the appropriate actions. Check this sample:
http://www.telerik.com/help/silverlight/raddraganddrop-between-listboxes.html
Regards,
Valentin.Stoychev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Drag and drop is not doing the move/copy operations - it justs reports events on which the developer is taking the appropriate actions. Check this sample:
http://www.telerik.com/help/silverlight/raddraganddrop-between-listboxes.html
Regards,
Valentin.Stoychev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Laurent DANESI
Top achievements
Rank 1
answered on 08 Feb 2010, 03:37 PM
Hi Valentin,
Thank you for the valuable support.
Now i'm able to do my custom Drag Copy Mode.
It remains a problem.
My use case is:
The drag start from a multi data item selection from a radTreeView.
So when i'm triggered with event OnDragQuery by the DndManager
I always received only one data item node being transfered instead of all the data items i've selected and want drag
private void OnDragQuery(object sender, DragDropQueryEventArgs e)
{
if (e.Options.Status == DragStatus.DragQuery)
{
var draggedItem = e.Options.Source;
Type t = draggedItem.DataContext.GetType();
// it is always only one item data , i should expect a collection of the all the data item i selected and want drag.
Any ideas ?
Thanks a lot by advance.
Laurent
Thank you for the valuable support.
Now i'm able to do my custom Drag Copy Mode.
It remains a problem.
My use case is:
The drag start from a multi data item selection from a radTreeView.
So when i'm triggered with event OnDragQuery by the DndManager
I always received only one data item node being transfered instead of all the data items i've selected and want drag
private void OnDragQuery(object sender, DragDropQueryEventArgs e)
{
if (e.Options.Status == DragStatus.DragQuery)
{
var draggedItem = e.Options.Source;
Type t = draggedItem.DataContext.GetType();
// it is always only one item data , i should expect a collection of the all the data item i selected and want drag.
Any ideas ?
Thanks a lot by advance.
Laurent
0
Hi Laurent,
We have created an example that illustrates how you can darg and drop multiple items from RadTreeView to ListBox.
In this example is used a hierarchical RadTreeView. You can choose as many items from it as you wish. Using the RadDragAndDrop control you can drop them in a ListBox.
The items from the RadTreeView aren't deleted.
Please let us know if you need additional info.
Regards,
Tina Stancheva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
We have created an example that illustrates how you can darg and drop multiple items from RadTreeView to ListBox.
In this example is used a hierarchical RadTreeView. You can choose as many items from it as you wish. Using the RadDragAndDrop control you can drop them in a ListBox.
The items from the RadTreeView aren't deleted.
Please let us know if you need additional info.
Regards,
Tina Stancheva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
0
Laurent DANESI
Top achievements
Rank 1
answered on 11 Feb 2010, 02:36 PM
Hi Tina ,
Thank you very much for your valuable support and quick response.
Laurent
Thank you very much for your valuable support and quick response.
Laurent
