Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic table   expandbutton (Read 3748 times)
parapara
YaBB Newbies
*
Offline


susan

Posts: 20
Location: China
Joined: Apr 3rd, 2008
table   expandbutton
Jul 8th, 2008 at 7:57am
Print Post  
hi!
In NetDiagram 2 beta version used DiagramView1.Diagram.Factory.CreateTableNode (10, 10, 30, 30) did not generate the Table expandbutton ???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: table   expandbutton
Reply #1 - Jul 8th, 2008 at 10:06am
Print Post  
Hi,

Set TableNode.Expandable = true to enable the expand button for individual tables, or Diagram.NodesExpandable = true to enable it for all new tables.

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


susan

Posts: 20
Location: China
Joined: Apr 3rd, 2008
Re: table   expandbutton
Reply #2 - Jul 9th, 2008 at 2:09am
Print Post  
I use the following code to create table:

MindFusion.Diagramming.TableNode tn = this.DiagramView1.Diagram.Factory.CreateTableNode(10, 15, 59, 35, 3, 5);
tn.Expandable = true;

but  Expandable  can not be used ???
why?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: table   expandbutton
Reply #3 - Jul 9th, 2008 at 6:52am
Print Post  
Could you try that with the final 2.0 version? We released it two weeks ago.

The Expandable property displays a +/- icon at the right side of the table, which lets you hide other nodes in the tree branch under the table. Is that what you expect?

If you need to expand/collapse table rows, you must designate some rows as headers. Header rows display a +/- icon which lets you expand or collapse the section of the table under the respective header.

Stoyan
  
Back to top
 
IP Logged
 
parapara
YaBB Newbies
*
Offline


susan

Posts: 20
Location: China
Joined: Apr 3rd, 2008
Re: table   expandbutton
Reply #4 - Jul 9th, 2008 at 8:13am
Print Post  
Hi stoyo,
Thank you for your help.
My question still exists.
I was using  the final 2.0 Version.

c# code:
MindFusion.Diagramming.TableNode tn = this.DiagramView1.Diagram.Factory.CreateTableNode(10, 15, 59, 35, 3, 5);
tn .Expandable = true;

I can't see any icon at the right side of the table. Embarrassed


I still have a problem.
In order to set an image as tables background, call the setImage method in html(javascript).

public void setImage (
    Image value
)

but the object of Image how to create?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: table   expandbutton
Reply #5 - Jul 9th, 2008 at 4:18pm
Print Post  
Hi,

This version should display the icon correctly:
https://mindfusion.eu/_beta/netdiag201.zip

You could use the following DiagramApplet method to load an image from URL:
public Image loadImage(String url);

Another option is to create some hidden nodes on the server side and load the images into them, and on the client set the table's image to one of the hidden nodes' images.

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


susan

Posts: 20
Location: China
Joined: Apr 3rd, 2008
Re: table   expandbutton
Reply #6 - Jul 10th, 2008 at 5:45am
Print Post  
Thank you for your help, my question has been resolved. Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint