drag feedback over treeview

5 posts, 1 answers
  1. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 13 Aug 2012 Link to this post

    Hi Telerik Team,

    I need  help with the tree view (using Q2 2012 SP1)
    When i am dragging one or more rows from the radgridview to the radtreeview, how can i force the treeview to expand and highlight the treenode that i am hovering (dragging) over?. And how can I show feedback in the treeview of the target drop position, similar to the dotted line used when dragging in the treeview itself) ?
    I am using the RadDragDropService. (radGridView.GridViewElement.GetService<RadDragDropService>)

     

    Thank you in advance.

    Best regards,
    Henri

  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 15 Aug 2012 Link to this post

    Hello Henri,

    Thank you for writing.

    You do not need to do anything else to achieve that. This comes with RadTreeView out of the box. You need simply to set the AllowDragDrop property to true:
    this.radTreeView1.AllowDragDrop = true;
    this.radTreeView2.AllowDragDrop = true;

    I hope this helps.

    Kind regards,
    Svett
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 20 Aug 2012 Link to this post

    Svett,

    As stated in the question, I am dragging from RADGRIDVIEW to the tree, not between radtreeviews.
    Please advise. Thank in advance,

    Best regards,
    Henri


  5. Answer
    Svett
    Admin
    Svett avatar
    728 posts

    Posted 21 Aug 2012 Link to this post

    Hello Henri,

    Presently, you cannot achieve this. The RadGridViewDragDropService has limitations that do not allow such extensibility. We will improve this in one the next releases.

    Greetings,
    Svett
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  6. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 21 Aug 2012 Link to this post

    Hallo Svett,
    Thank you for your quick answer. It is unfortunate that this can not be done.
    I will wait for the next release. Hopefully this will be implemented.
    Best regards,
    Henri
Back to Top
UI for WinForms is Visual Studio 2017 Ready