Drag Drop with Datasource

2 posts, 1 answers
  1. samuel
    samuel avatar
    12 posts
    Member since:
    Sep 2008

    Posted 08 Aug 2013 Link to this post

    Hi,
    I use Visual Studio 2012.
    I use Telerik WinForm with version 2013.2.724.40.

    In my RadForm, I use 2 Treeviews. The first Treeview is filled out with a Datasource. 
    I want drag & drop a node to the second Treeview. 
    I have modified the property AllowDragDrop and AllowDrop in True for all treeview.

    When i drag & drop the first node to the other Treeview, it's ok. The node is deleted in the first Treeview and it is created in the second. 
    But if I drag & drop an other node, the drag & drop not works and the nodes moves in the first treeview. 

    I want to know if you've seen this problem. And if you do not have a  code for around this problem.

    best regard,
     
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 13 Aug 2013 Link to this post

    Hi Samuel,

    Thank you for writing.

    Drag and drop between treeviews by using the AllowDragDrop property is supported in unbound mode only. If you want to perform such in bound mode as well (or in mixed mode as in your case) you will have to implement you own drag and drop functionality. Attached you can find a sample demonstrating how this can be achieved. Feel free to modify it to match your needs.

    I hope that you find this information useful.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top