Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cancel collapsing of nodes at certain nodes. (Read 1713 times)
Kileak
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 25th, 2011
Cancel collapsing of nodes at certain nodes.
Nov 25th, 2011 at 10:09am
Print Post  
Is it possible to cancel collapsing of nodes at certain nodes, or just mark nodes, that recursive collapsing should stop at those?

I got multiple trees, which should be collapsed to their root node, so I iterate through every node, check if it is a root node (derived class from DiagramNode) and collapse it. So far it works.

But those root nodes can also be connected together to indicate a process workflow.

Code
Select All
Root --> Root2 --> Root3
 |         |         |
 v         v         v
Child    Child     Child
 



Since those connection also count as "incoming" links, the connected processes will also be collapsed. Is it somehow possible to mark those root nodes, that recursive collapse should stop at those or does an event exists, at which I can cancel the child recursion?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancel collapsing of nodes at certain nodes.
Reply #1 - Nov 25th, 2011 at 10:40am
Print Post  
It's not possible to stop it at certain nodes at this time. We could add some property to links for next release to indicate whether collapse/expand should continue through them. For the time being, you could set ExpandButtonAction = Custom and handle the ExpandButtonClicked event to hide only the nodes you need.

Stoyan
  
Back to top
 
IP Logged
 
Kileak
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 25th, 2011
Re: Cancel collapsing of nodes at certain nodes.
Reply #2 - Nov 25th, 2011 at 12:15pm
Print Post  
Thanks for the direction, but I don't use expand buttons for collapsing the nodes.

Instead the collapsing is triggered by a command from the ribbon, which iterates through all nodes, and collapses them if they're "root node"-types.

I solved my problem for now, by reiterating through the nodes after the collapse, and set the nodes to visible if they are a root node (same for the links, connecting the root nodes). Not the most elegant solution, but it works for me for now.

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