Drag and Drop from GridView to TreeView

3 posts, 0 answers
  1. Jeff Bradshaw
    Jeff Bradshaw avatar
    27 posts
    Member since:
    Oct 2008

    Posted 28 Oct 2010 Link to this post

    I need to be able to drag a row from a gridview over onto a tree view. I see an example but it's pretty old. I was wondering if there are any newer examples or better ways of doing it?

    TIA - Jeff.
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 29 Oct 2010 Link to this post

    Hello Jeff,

    This would be a complex task to achieve, and there are a lot of factors to take into consideration, like:
    - Are the datasources for the grid and the tree of the same type and / hold the same amount of data (if not you will not be able to have a bidirectional drag / drop operation).
    - Are visual elements important while dragging? (does the user need to see a snapshot of the dragged rows moving with the mouse while he drags?, and the same for the tree)

    Basically this is all i could think of now that would be difficult to achieve, other than that it should be a very straightforward operation (the second question is the tricky part).

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  3. Svett
    Svett avatar
    728 posts

    Posted 02 Nov 2010 Link to this post

    Hi Jeff,

    Presently, if you want to implement drag-n-drop between the RadGridView and the RadTreeView, you should use the Microsoft OLE Drag-n-Drop functionality. You can read more about that in this MSDN article

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top