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

Drag and Drop between ListBox using MVVM

2 Answers 90 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
shivir
Top achievements
Rank 1
shivir asked on 10 Dec 2010, 04:53 PM
Hi,

How can achive Drag and Drop between Listboxes using MVVM. The main problem is how to handle the Drag and Drop feature in MVVM.

Thanks,
Rajib Banerjee.

2 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 15 Dec 2010, 03:57 PM
Hello shivir,

Please check this blogpost and let me know if this help with your scenario - http://blogs.telerik.com/tsvyatkokonov/posts/10-12-15/using_commands_with_raddraganddropmanager.aspx

Let me know if you have any further questions.

All the best,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
ultramods
Top achievements
Rank 1
answered on 29 Mar 2011, 08:27 AM

Hi, I have implemented drag and drop using commands and VM as per your blog post, however I have an issue.

I am dragging an item from a tree view and dropping it into a list box, this works ok. However my issue is that the item from the tree view is always removed, I would like it to remain (copy instead of cut). I have tried various approaches to prevent the item from being removed (including cloning etc) but I can't get it to work.

Any help would be appreciated, thanks.

Tags
DragAndDrop
Asked by
shivir
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
ultramods
Top achievements
Rank 1
Share this question
or