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

RadDragAndDropManager Event as ICommand

5 Answers 69 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Meehir
Top achievements
Rank 1
Meehir asked on 25 Feb 2011, 01:55 PM
Hi,

I am using List box for drag and drop functionality, and added below line and its method in xaml.cs file, and its working fine.

 

 

RadDragAndDropManager.AddDragQueryHandler(this, OnDragQuery);

 

 

 

 

RadDragAndDropManager.AddDragInfoHandler(this, OnDragInfo);

 

 

 

 

RadDragAndDropManager.AddDropQueryHandler(this, OnDropQuery);

 

 

 

 

RadDragAndDropManager.AddDropInfoHandler(this, OnDropInfo);

But, I am using MVVM model and would like to write this method on ViewModel.  Kindly suggest me how can i convert this method as a ICommand so that I could able to write this method on ViewModel.

I have search lots of website and could not got any solution, so uses this platform.

Kindly help me,

Thanks and Regards,
Meehir Jha

 

5 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 25 Feb 2011, 03:08 PM
Hi Meehir,

You might what to check this blogpost explaining the idea how to use RadDragAndDropManager in MVVM scenario.


All the best,
Tsvyatko
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Meehir
Top achievements
Rank 1
answered on 28 Feb 2011, 11:18 AM

Hi Tsvyatko,

Thanks for the post on Drag and Drop functionality using MVVM model.  This works perfectly on my machine, except the below scenario.

Dragging item from source list box and drop it to same (source) list box, it removes the item from the source list box and doesnt add it to anywhere.

Kindly help me.

0
Syed Moshiur
Top achievements
Rank 1
answered on 14 Oct 2011, 12:52 PM
Hi, The above provided link RadDragdrop with MVVM is not available and seems like i cannot find it in the blog with the given entry date. Could you please reshare the correct link?
Also has anyone have used with prism4.0. Can anyone share a sample?
Thnaks 
Moshiur
0
Vlad
Telerik team
answered on 14 Oct 2011, 12:57 PM
Hi,

 Here is the new link:
http://blogs.telerik.com/silverlightteam/posts/10-12-15/using-commands-with-raddraganddropmanager-for-wpf-and-silverlight.aspx

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Syed Moshiur
Top achievements
Rank 1
answered on 14 Oct 2011, 06:07 PM
Thank vlad!
I was evaluating if prism and telerik(if to buy telerik) fits together for our requirement. And seems like it does. Also quite impressed with the quick reply.
Thanks mate!
Moshiur
Tags
DragAndDrop
Asked by
Meehir
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Meehir
Top achievements
Rank 1
Syed Moshiur
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or