Drag drop related problem in MVVM

7 posts, 0 answers
  1. Alpa
    Alpa avatar
    5 posts
    Member since:
    Dec 2010

    Posted 23 Dec 2010 Link to this post

    hii,
    I am trying to create an application in which I want to drag an item from a treeview and drop it in radgridview with MVVM. Here I used attached command behaviour. When these drag and drop feature applied in simple code behind way it works properly. In MVVM it doesnot work.

    So please give me some solution for this problem with samples.

    Thanks.
    Alpa.
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 23 Dec 2010 Link to this post

    Hello Alpa,

    Please, check this example in this blogpost - http://blogs.telerik.com/tsvyatkokonov/posts/10-12-15/using_commands_with_raddraganddropmanager_for_wpf_and_silverlight.aspx - although its in SL the same approach can be applied for WPF.

    Let me know if this works for you.

    Kind regards,
    Tsvyatko
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alpa
    Alpa avatar
    5 posts
    Member since:
    Dec 2010

    Posted 24 Dec 2010 Link to this post

    Hi Tsvyatko,
     
    Thanks for reply. But you give me sample in silverlight 4 platform and i tried this code in my application. It didnt work and giving error because of the references used was from silverlight 4 dll's. I used CommandDragDropBehaviour class from sample in my WPF application and it didnt work.

    So please give me solution of this problem.

    Thanks
    Alpa.
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 24 Dec 2010 Link to this post

    Hello Alpa,

    I have updated the blog post with WPF version of the sample. Please find the project here:http://blogs.telerik.com/Libraries/TsvyatkoKonov_Library/Wpf_CommandDragDrop.sflb

    Best wishes,
    Tsvyatko
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  6. Alpa
    Alpa avatar
    5 posts
    Member since:
    Dec 2010

    Posted 27 Dec 2010 Link to this post

    Hello Tsvyatko,
    Thank you for your previous post. In the last post you give me a sample project in MVVM- Wpf. It work properly. But when I used that in my project in which I want to drag an item from a RadTreeView and drop it on a RadGridViw. My RadTreeView itemsource containes collection of Directory and i wanted to drag a folder or file from treeviewitem and drop it on datagrid column. And it didnt work.

    So please give me some solution for these problem.

    Thanks,
    Alpa.
  7. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 28 Dec 2010 Link to this post

    Hello Alpa,

    I have modified the project to use RadTreeView and RadGridView instead. Please, check the attachment and let me know

    Best wishes,
    Tsvyatko
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  8. Alpa
    Alpa avatar
    5 posts
    Member since:
    Dec 2010

    Posted 03 Jan 2011 Link to this post

    Hello Tsvyatko,

    Thank you for your reply. And this sample is worked for my application.

    Thanks,
    Alpa
Back to Top
UI for WPF is Visual Studio 2017 Ready