Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tree Layout and Reorgnaize nodes (Read 1386 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Tree Layout and Reorgnaize nodes
Aug 25th, 2010 at 9:45am
Print Post  
Hi Stoyo

I am generating a orgnogram using "TreeLayout".
Now once the tree is generated, I am allowing user to re-position/resize the nodes.

For eq. allowing user to resize the nodes should re-arrange all downlevel nodes
Or
Re-positioning the node should re-arrange all nodes on same level and downlevel for all nodes.

I tried to re-arrange the nodes & links which are in downlevel but not working as expected.

-Regards
Rajesh
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tree Layout and Reorgnaize nodes
Reply #1 - Aug 25th, 2010 at 11:59am
Print Post  
Hi Rajesh,

Changing the order of a node relatively to its siblings can be done by changing the index of the link that connects it to its parent in the parent's OutgoingLinks collection. E.g. if you want a node to become leftmost under its parent, remove the corresponding link from parent.OutgoingLinks and insert it at index 0.

I suppose you'll have to re-arrange the tree branch that starts from the parent node after that, by setting TreeLayout.Root and enabling KeepRootPosition.

Regards,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint