Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to hide all the child nodes (Read 1453 times)
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
How to hide all the child nodes
Sep 28th, 2015 at 10:55am
Print Post  
Hi,

When I collapse one parent node, its immediate child nodes are getting hidden/collapsed. But the child of the child nodes still remain visible. What could be the fix to this?

This does not happen very frequently though.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to hide all the child nodes
Reply #1 - Sep 28th, 2015 at 11:49am
Print Post  
Hi,

This could happen if what you consider a child node is connected to parent node through link in opposite direction than one indicated by Diagram.ExpandOnIncoming property.

Collapse recursion will also stop if the currently processed node already has its expanded field set to false. E.g. this will happen if you add links and child nodes to a parent node that's currently collapsed (showing + sign), and try to collapse it again through ancestor node. To fix that, you could either call expand() on the node when adding children or directly set its expanded field to true, so collapse() method does not stop. Collapse method checks that field to prevent infinite recursion, so be careful if your diagram contains cycles.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint