Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Programatically Deleting Link (Read 1377 times)
kdr35
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 12th, 2010
Programatically Deleting Link
Aug 20th, 2010 at 12:13pm
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?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Programatically Deleting Link
Reply #1 - Aug 20th, 2010 at 12:15pm
Print Post  
Hi,

Remove the link from Diagram.Links.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kdr35
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 12th, 2010
Re: Programatically Deleting Link
Reply #2 - Aug 20th, 2010 at 12:20pm
Print Post  
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint