Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic expandbuttonclicked in netdiagram 2.0 (Read 1739 times)
lue
YaBB Newbies
*
Offline


I love NetDiagram!

Posts: 43
Location: Austria
Joined: Jan 9th, 2008
expandbuttonclicked in netdiagram 2.0
Jul 8th, 2008 at 4:20am
Print Post  
We would like use the expandbuttonclicked event (+/-) to save the id (tag) of a shape node (in the imagemap mode) in a session variable, but we get alway errors:

Compiler Error Message: BC30590: Event 'ExpandButtonClicked' cannot be found.

Source Error:

Sub diagramView_ExpandButtonClicked(ByVal sender As Object, ByVal e As NodeEventArgs) Handles diagramView.ExpandButtonClicked

If Not e.Node.Tag Is Nothing Then Session("Toggle") = e.Node.Tag

End Sub

the html code of the page contains:

<form id="Form1" method="post" runat="server">
  <p align="left">
  <ndiag:DiagramView id="diagramView" runat="server" width="1800px" height="1200px" clientsidemode="ImageMap" OnExpandButtonClicked="diagramView_ExpandButtonClicked">
  <diagram backbrush="s:#FFFFFFFF" /></ndiag:DiagramView>
  </p>

Whats wrong?

Is there another possibility to get the node.tag on the server side?

We use vb.net (asp.net 2.0)

thanks and regards
chris
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: expandbuttonclicked in netdiagram 2.0
Reply #1 - Jul 8th, 2008 at 5:47am
Print Post  
Hi,

The ExpandButtonClicked event from Flowchart.NET in not available in NetDiagram Imagemap mode yet. You could handle TreeExpanded and TreeCollapsed instead, and you could undo the expand/collapse operation by calling e.Node.Collapse or e.Node.Expand from the handler.

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