Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cant get Server Side onnodeclicked event to work (Read 1411 times)
Lenny
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 13th, 2009
Cant get Server Side onnodeclicked event to work
May 13th, 2009 at 5:53pm
Print Post  
Hi all,

I am evaluationg the NetDiagram for ASP.Net product and really like it, however i cant seem to get the onnodeclicked event to fire off. I followed the instructions that came with the help saying to goto the detail view, select the diagramview control, go under events and click on NodeClicked. When i do just as in the help a new event handelr is created in the code behind and i then tried to update the text property of a label to a hard coded string. the problem is it never fires off. I tried placing a break point on the handler and confirmed it is not firing off or not linked correctly. i placed a textchange event on a textbox on the same page and was able to change the label and a breakpoint shows that event was handled.

Any suggestions?

Here is a snippet of the aspx and the code behind...

<ndiag:DiagramView ID="diagView" runat="server" Height="500px" Width="500px"
ClientSideMode="JavaApplet" onnodeclicked="diagView_NodeClicked2"/>



protected void diagView_NodeClicked2(object sender, NodeEventArgs e)
{

Label1.Text = "click";

}

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cant get Server Side onnodeclicked event to wo
Reply #1 - May 13th, 2009 at 6:31pm
Print Post  
Hi,

In JavaApplet mode, the events are raised on the cilent side. You should set the NodeClickedScript to the name of a JavaScript function that should handle the event. The DiagramView server-side events are raised in ImageMap mode.

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