Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete a folded container (Read 1402 times)
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Delete a folded container
Jul 29th, 2010 at 11:19pm
Print Post  
Hello Stoyan !

I have a new problem for you (again).

When I delete a container that contains nodes, the contained nodes are not visible after the deletion of container.

So I call Visible=true on each contained node and it obviously make them appear which is great, but I cannot update the links to these nodes which are all bad placed.

So again...

1-2 Nodes in a container


2-I fold the container


3-I delete the container and then call Visible= true on each contained node


The links are not updated....

I tried a lot of things such as the Route() methods on the links, calling Invalidate on the diagram, trying to move the nodes programmatically so that it forces the links to update but nothing works.

Can you help me on that one ?

Thanks
Amaury

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete a folded container
Reply #1 - Jul 30th, 2010 at 6:05am
Print Post  
Hi Amaury,

Try this as a workaround:

Code
Select All
private void diagram_NodeDeleting(object sender, NodeValidationEventArgs e)
{
	var container = e.Node as ContainerNode;
	if (container != null)
		container.Folded = false;
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Delete a folded container
Reply #2 - Aug 2nd, 2010 at 10:57pm
Print Post  
Heheh thanks  a lot Stoyan, it works !

Nice workaround !

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