Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramLink not disappearing from Diagram. (Read 1446 times)
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
DiagramLink not disappearing from Diagram.
Apr 19th, 2010 at 7:38am
Print Post  
Hi,

i am creating links programatically between nodes using diagram.Factory.CreateDiagramLink function. I provide 2 diagramnodes as input and it creates a link between them.

When i try to remove the links from them, using,
for (int i = 0; i < tempNode.OutgoingLinks.Count; i++)
    tempNode.OutgoingLinks.Remove(tempNode.OutgoingLinks[i]);

it removes the links from the collection, but not from the appearance point of view. I can see them in the UI, but it doesnot exist in the collection. I think the diagram is not refreshing.

Is there any way in which we can achieve it?
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink not disappearing from Diagram.
Reply #1 - Apr 19th, 2010 at 8:24am
Print Post  
Remove them from diagram.Links instead. Also change the for statement counter to start from OutgoingLinks.Count - 1 and loop downward to 0.
  
Back to top
 
IP Logged
 
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Re: DiagramLink not disappearing from Diagram.
Reply #2 - Apr 19th, 2010 at 1:05pm
Print Post  
Thanks.
  

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