Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with allowlinksrepeat() (Read 1650 times)
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Problem with allowlinksrepeat()
Oct 30th, 2012 at 10:28pm
Print Post  
It just doesnt seem to work. its supposed to be implemented in page_load() right?

is there any other way to see if more than two links exist between two nodes in same direction?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with allowlinksrepeat()
Reply #1 - Oct 31st, 2012 at 8:17am
Print Post  
Apparently this property is not checked in ImageMap mode. For the time being you could delete redundant links like this:

Code
Select All
protected void OnLinkCreated(object sender, LinkEventArgs e)
{
	var commonLinks =
		from DiagramLink l in e.Link.Origin.OutgoingLinks
		where l.Destination == e.Link.Destination
		select l;

	for (int i = 1; i < commonLinks.Count(); i++)
		diagView.Diagram.Links.Remove(commonLinks.ElementAt(i));
} 



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