Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Clickable organization chart. (Read 2311 times)
GDIDev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Nov 27th, 2006
Clickable organization chart.
Nov 27th, 2006 at 6:19am
Print Post  
Have anybody tried to make an organization chart that can be click to show more child level using flowchart.net component?
Thx for answering.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Clickable organization chart.
Reply #1 - Nov 27th, 2006 at 6:37am
Print Post  
Hi,

You can do that by handling the BoxClicked event and adding more items to the tree below the clicked box. Use the TreeLayout class to arrange the newly added nodes.

Take a look at this example, which does something close to what you need. It is in JavaScript, but should it should be easy to implement it in C#:

http://mindfusion.org/cgi/Forum/YaBB.pl?board=netdg_disc;action=display;num=1164...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
GDIDev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Nov 27th, 2006
Re: Clickable organization chart.
Reply #2 - Nov 28th, 2006 at 12:00am
Print Post  
if i want to build in aspx file, so i have to used webchart.net? do you have any sample of using webchart.net? thx...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Clickable organization chart.
Reply #3 - Nov 28th, 2006 at 6:01am
Print Post  
There is the WebApp sample project installed with FlowChart.NET. It creates jpeg images and html image maps representing flowcharts on the server side.

The Hyperlink property of an item will let you handle mouse click for that item, e.g. you could add an argument to the URL

box.HyperLink = "/Expand.aspx?node=1";

and in Expand.aspx expand the hierarchy that starts from node 1.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint