This is a migrated thread and some comments may be shown as answers.

Unable to drop node between two other nodes

8 Answers 83 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Claus
Top achievements
Rank 1
Claus asked on 22 Jun 2009, 11:47 AM
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...

8 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 22 Jun 2009, 01:31 PM
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.
0
Claus
Top achievements
Rank 1
answered on 22 Jun 2009, 01:50 PM
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?
0
Victor
Telerik team
answered on 22 Jun 2009, 02:22 PM
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.
0
Claus
Top achievements
Rank 1
answered on 22 Jun 2009, 02:28 PM
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...
0
Victor
Telerik team
answered on 22 Jun 2009, 05:09 PM
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.
0
David
Top achievements
Rank 1
answered on 11 Aug 2010, 02:21 PM
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

0
Stefan
Telerik team
answered on 16 Aug 2010, 07:50 PM
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
0
David
Top achievements
Rank 1
answered on 16 Aug 2010, 08:01 PM

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
Tags
Treeview
Asked by
Claus
Top achievements
Rank 1
Answers by
Victor
Telerik team
Claus
Top achievements
Rank 1
David
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or