RadDragAndDropManager Event as ICommand

6 posts, 0 answers
  1. Meehir
    Meehir avatar
    14 posts
    Member since:
    Oct 2010

    Posted 25 Feb 2011 Link to this post

    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

     

  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 25 Feb 2011 Link to this post

    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!
  3. DevCraft banner
  4. Meehir
    Meehir avatar
    14 posts
    Member since:
    Oct 2010

    Posted 28 Feb 2011 Link to this post

    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.

  5. Syed Moshiur
    Syed Moshiur avatar
    5 posts
    Member since:
    Oct 2011

    Posted 14 Oct 2011 Link to this post

    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
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Oct 2011 Link to this post

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

  7. Syed Moshiur
    Syed Moshiur avatar
    5 posts
    Member since:
    Oct 2011

    Posted 14 Oct 2011 Link to this post

    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
Back to Top
DevCraft banner