Yes, this is a problem, as I noted previously.  Re-parenting is not the
problem.  Perhaps you should start a new thread with the right subject.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Yves Riel
Sent: Wednesday, January 21, 2009 1:01 PM
To: [email protected]
Subject: RE: [flexcoders] Re-parenting Tree nodes using drag & drop

 

Thanks but this is exactly what I tried before writing this question. I
was not able to actually take a node and make it a child of another
node. The only exception to this is when the target node already has
children and that the children are already visible in the tree. If the
target node is close or has no children ... it's impossible ... at least
for me :-)

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Tracy Spratt
Sent: Wednesday, January 21, 2009 12:37 PM
To: [email protected]
Subject: RE: [flexcoders] Re-parenting Tree nodes using drag & drop

Yes, there is an example in the docs under the heading:

"Using drag-and-drop with list-based controls"

Subheading:

Dragging and dropping in the same control

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Tracy Spratt
Sent: Wednesday, January 21, 2009 12:14 PM
To: [email protected]
Subject: RE: [flexcoders] Re-parenting Tree nodes using drag & drop

Hmm, that should be standard functionality.  I have used Tree DnD to
rearrange xml regularly, though not recently.  I wil look for a simple
example.  Have you tried this?

As I recall, it can be difficult to drop the first child node into an
empty parent.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Yves Riel
Sent: Wednesday, January 21, 2009 11:59 AM
To: [email protected]
Subject: [flexcoders] Re-parenting Tree nodes using drag & drop

I looked in the archive but didn't find any useful information for this.
So, here it is: I have a Flex Tree component in which I want to
re-parent a node using drag & drop. Basically, I want to be able to take
a node, drag it on top of another node and that the dragged node be
added as a child. The standard Flex Tree will not allow this (unless I
don't know how to set it up) and I didn't find any open source component
on the net. Does any one have or has seen such a tree?

Thanks!

 

Reply via email to