Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Expanding node in web application (Read 1987 times)
manas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: May 16th, 2006
Expanding node in web application
May 16th, 2006 at 11:28am
Print Post  
We have drawn a treechart in web application using webchart.net.dll. We want to expand and collapse the nodes of tree.

fc.BoxesExpandable = true;
fc.RecursiveExpand = true;
fc.ExpandButtonPosition = ExpandButtonPosition.OuterTop;

Expand button appears on the boxes, but nothing happens when we click it.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Expanding node in web application
Reply #1 - May 16th, 2006 at 12:29pm
Print Post  
Try setting the HtmlBuilder.ExpandBtnHyperLink property to a page on your server which should process the expand/collapse action. You can get the index or tag of the box which should be expanded by adding {0} or {1} format specifiers to the hyperlink. Then on the server check the box identifier, expand or collapse the affected tree branch and redirect to the diagram page.

Stoyan
  
Back to top
 
IP Logged
 
manas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: May 16th, 2006
Re: Expanding node in web application
Reply #2 - May 17th, 2006 at 2:52am
Print Post  
Is it compulsory to use hyperlink in the box? Is there other way to expand/collapse the nodes without using hyperlink?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Expanding node in web application
Reply #3 - May 17th, 2006 at 6:28am
Print Post  
The webchart library can only generate images on the server side, and it is not a full blown web control (yet), so there is no other way to handle the expand/collapse except setting that hyperlink and handling it on the server side.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint