Drag and drop of nodes betweeen two RadTreeView in WPF

4 posts, 0 answers
  1. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 08 May 2009 Link to this post

    Hi

         I am developing an application in which I require drag drop between two tree. But this is not directly supported in RadTreeView control,so can you suggest me how I can implement it using your RadTreeView control. Please provide me sample code if possible.
    I need to implement it in urgent,so please respond it as soon as possible

    Thanks in advance
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 11 May 2009 Link to this post

    Hello Balaram,

    To allow drag and drop operation between nodes in RadTreeView for WPF, you need to set the IsDragDropEnabled control property of to 'true'. Once enabled, dragging behavior by default allows Items to be dropped on other items and between the items. For additional information, please review the documentation under Controls -> RadTreeView -> Programming -> Drag and Drop. You can also play with the live demos available both upon installation locally as well as live here.

    Should you have further questions, do not hesitate to write back.

    Greetings,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 11 May 2009 Link to this post

    Hi,
        Konstantin Petkov
    I have already implemented "IsDragDropEnabled control property of to 'true' ", But this implements Drag and Drop inbetween the nodes of the Same Tree.But in my application There are two TreeView(say Tree1 and Tree2)  and I require to Drag a node form one tree(say Tree1) and to drop it on another node of the other tree(say Tree2). So please suggest me how I can implement it using your RadTreeView control.
                                      If possible please provide me sample code.


    Thanks in advance
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 11 May 2009 Link to this post

    Hello Balaram,

    Indeed, the setting allows you to drag/drop nodes in the same tree. As to drag and drop operation between separate controls please review this thread for reference:

    http://www.telerik.com/community/forums/wpf/treeview/drag-drop-between-two-treeviews.aspx

    Regards,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top