Home - Forums-.NET - FlyTreeView (ASP.NET) - Sorting / Reordering a Tree

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Sorting / Reordering a Tree
Link Posted: 13-Nov-2006 17:35
I have a tree that only accepts the creation of nodes as siblings.  Through the drag and drop names and accept names I have made this tree not allow the creation of parent-child within the tree.  However, I need to be able to sort this tree.  

Let's say I have ten nodes in my tree, I need to be able to take node 3 and drag it to node 7 - in essence re-ordering the tree.  Is there a way to do this?  I was even looking at removing the node and then adding it back in via the client-side script.  However, I don't see a way to add a node at a specified point in the tree.  

Help on this would be greatly appreciated.
Link Posted: 14-Nov-2006 00:08
As far as I understand you, there can be a possible solution with insertNode method.

Please look at the last posts in the following thread:
http://www.9rays.net/forums/viewtopic.php?t=1212

Use my sample ASPX page code. It looks like what you need to sort nodes.
Link Posted: 14-Nov-2006 16:33
Perfect!  Thank you very much!!!!