Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic linkCreating and linkCreated in ASP.net example (Read 1741 times)
carlitos rosas
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jul 3rd, 2012
linkCreating and linkCreated in ASP.net example
Jul 3rd, 2012 at 5:24am
Print Post  
how to implement events LinkCreating and LinkCreated in ASP.net with C#
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: linkCreating and linkCreated in ASP.net example
Reply #1 - Jul 3rd, 2012 at 5:44am
Print Post  
If you are using ImageMap mode, you can implement only a LinkCreated handler on the server. In other modes you can also handle the Creating event, but in them event handlers can be implemented only in JavaScript:

Code
Select All
<ndiag:DiagramView runat="server" ...
	ClientSideMode="JavaApplet"
	LinkCreatingScript="onLinkCreating">
</ndiag:DiagramView>

function onLinkCreating(sender, args)
{
	if (args.getOrigin() == args.getDestination())
		args.setCancel(true);
} 



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