There might be a way to use a custom ITreeDataDescriptor to turn every child 
into a "branch".  Open but empty folders have a middle drop zone for dropping 
"into".

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alan Rother
Sent: Monday, March 09, 2009 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 Tree - Moving Nodes


Hey All,

I am trying to build a Flex based tree for our content management system here 
at work. It needs to represent all of the pages on a given site. I already have 
a good working prototype using XML as the dataprovider and i have a good chunk 
of the drag and drop functions working well. The problem I am having is around 
the dragdrop handler. I need to be able to move any page to anywhere on the 
tree, including below (as a child of) any other page in addition to being able 
to reorder pages on the same level (same parent node)

I can get it to do one or the other but not both at the same time. As far as I 
can tell, Flex doesn't recognize the difference between a drop on a node and a 
drop between two nodes. As I think this would solve my problem. Has anyone 
tackled this problem before? I basically need a simple way for my very 
non-technical users to drag pages for one of two operations, re-ordering within 
a section or moving a page to another section.

This ExtJS example is almost exactly what I want my Flex tree to do

http://www.extjs.com/deploy/dev/examples/tree/reorder.html

Except I need to treat every item on the tree as a folder.

=]

--
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org

Reply via email to