Move child nodes under
the same parent


obout.com
ASP TreeView
Fast
Easy
Links & Notes since 1998
First child
This is nr.1
This is nr.2
This is nr.3
Move me down
Move me up
Second child
Third child



 To move a node up, use : onclick="ob_t2_UpDown('up')"

 And to move it down: onclick="ob_t2_UpDown('down')"


 To re-order the nodes using drag and drop, simply drag and drop a child node
 over its parent.The dragged child will become the first child of the parent.
 In order to make this work, the ob_mdn_xxxx.js located in the Tree_2028/Script/
 folder must be edited.

 Open the ob_mdn_xxxx.js file, and locate the following piece of code:
 /*ob_t2_MoveDraggableNode(o_A);*/

 1.Uncomment that code fragment
 2.Comment the next line:
 alert("Can not move. The destination is the same as the source.");
(this is located after the ob_t2_MoveDraggableNode function)