Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable node and link click events in ImageMap mode (Read 2372 times)
LGK
YaBB Newbies
*
Offline



Posts: 30
Location: Boston, MA
Joined: Mar 29th, 2012
Disable node and link click events in ImageMap mode
Jun 14th, 2012 at 5:54pm
Print Post  
I have the following DiagramView definition:

Code
Select All
<ndiag:DiagramView ID="PFVDiagram"
     Behavior="DoNothing"
     ClientSideMode="ImageMap"
     Width="800"
     Height="600"
     runat="server">
     <Diagram
         DefaultShape="Rectangle"
         LinkHeadShapeSize="2"
         LinkHeadShape="Arrow"
         LinkCrossings="Arcs"
         ShadowsStyle="None"
         AutoAlignNodes="true" />
</ndiag:DiagramView>
 



I've noticed that by default, when I click on a node or on a link in my graph, the page is submitted. I want to disable click events on the diagram altogether (unless I specify event handlers explicitly). Is there a property that I need to set in order to do that?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Disable node and link click events in ImageMap mode
Reply #1 - Jun 15th, 2012 at 7:21am
Print Post  
Setting a Node/Link-ClickedScript or the Hyperlink property will override the postback code. So you could set empty client-side onClicked handlers or set Hyperlink = "javascript:void(0)" for all items to prevent posting back the page.

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