Unable to drop node between two other nodes

9 posts, 0 answers
  1. Claus
    Claus avatar
    6 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2009 Link to this post

    What do I need to do to be able to drop a node between two other nodes to reorder the nodes?

    No matter what I do the dragNode is always added as a child to the node it is dropped on :-(
    I have tried specifying SpacingBetweenNodes to see if that help but the only effect is that the dotted line jumps from one node to the next. I can never drop a node between two other nodes.

    And on the same issue: Can you provide code examples how to handle nodes dropped between two other nodes? is the dragNode infact dropped on the "parent" node and can I in the mouseUp event get the previousSibling to decide where the node has been dropped?

    Thanks...
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Jun 2009 Link to this post

    Hi Claus,

    RadTreeView automatically determines the place where nodes are dropped. There is a line which indicates where a node will be dropped. If the line crosses a node, the dropped node will be added as a child, if the line is below or above a node, the dropped node will be where the line indicates. I agree however that it is sometimes difficult to reorder nodes. We are aware of this issue and RadTreeView will be improved in a future release.

    Regards,
    Victor
    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. UI for WinForms is Visual Studio 2017 Ready
  4. Claus
    Claus avatar
    6 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2009 Link to this post

    I can see the line as a dark dotted line. Am I correct in assuming that you operate with three positions within a node: top, middle, bottom? If so I can definitely see the line in the different positions. The problem is, however, that no matter which position I drop a node in it is added as a child node to the node upon which it is dropped... As earlier stated I have even tried adding 10 px between each node to be able to see the drop position more accurate but it does not help :-(

    Is there a property that I need to set to enable dropping of a node between two other nodes?
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Jun 2009 Link to this post

    Hi Claus,

    Yes, the only thing that you need to do is set RadTreeView AllowDragDrop property to true. Have you set any other settings of the tree view as well?

    Kind regards,
    Victor
    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.
  6. Claus
    Claus avatar
    6 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2009 Link to this post

    Well AllowDragDrop is already set to true. It seems that reordering is indeed complicated. A bit too complicated maybe. I have spent all day and running my code is seeing desired functionality working very erratic. When trying to drag a node and dropping it between two other nodes works maybe 1 in 5 tries and even the actual drag event only works every second or third attempt...
  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Jun 2009 Link to this post

    Hello Claus,

    This is exactly what I was referring to. It does not work correctly and we have scheduled the issue for fixing. I am afraid that I can not provide a workaround at this time. I am sorry for this.
     

    Kind regards,
    Victor
    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.
  8. David
    David avatar
    3 posts
    Member since:
    Nov 2008

    Posted 11 Aug 2010 Link to this post

    8/11/2010

    Victor,

    Has this issue been fixed in the latest release?  We are using the 2010.2.713.40 version of Telerik and still see the problem.

    Kindly let us know.

    Thanks,
    David Whitehead
    AAMVA

  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 16 Aug 2010 Link to this post

    Hi David,

    Thanks for writing. 

    The fact that there is not such a version of RadControls for WinForms suggests that may be you are using RadControls for ASP.NET AJAX. If this is so, please confirm it and we will transfer your question to the right department. Alternatively, you can open a new support ticket and select the control under the ASP.NET AJAX section.

    In case that you are using RadControls for WinForms, please share which version you are using. Further, please describe your issue in details.

    I am looking forward to your reply.

    All the best,
    Stefan
    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
  10. David
    David avatar
    3 posts
    Member since:
    Nov 2008

    Posted 16 Aug 2010 Link to this post


    Stefan,

        Thanks for the reply.  We are using RadControls for ASP.NET AJAX.  Sorry I'm in the wrong forum.  In the meantime we found a solution to our problem which doesn't require 'dropping between nodes'.  So, for now, all is well.  Thanks again for the quick response.

    David Whitehead
    AAMVA
Back to Top
UI for WinForms is Visual Studio 2017 Ready