Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) treeviewlayout (Read 7859 times)
chimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
treeviewlayout
Feb 24th, 2011 at 2:23pm
Print Post  
hi,

sorry i am totally new in mindfusion diagraming.
i need to draw treenodes showing joins spreading in no of columns  and rows.
which is better layout and how can i use it. how to add to specify differnt row and columns at run time
i didnt find any help for this online

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #1 - Feb 24th, 2011 at 3:27pm
Print Post  
Hi,

Do you mean you are using the TreeViewNode class? It can display only one column, and the number of rows depends on the number of items in TreeViewNode.RootItems and their children. If you need to show more columns of data, you could use TableNodes. For best results arranging both kinds of nodes, use LayeredLayout with Orientation set to Horizontal.

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


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
Re: treeviewlayout
Reply #2 - Feb 24th, 2011 at 3:46pm
Print Post  
hi,

thank you for reply.

sorry its mindfusion diagramming showing table nodes with joinlinks

just boiling my head to do it from morning.

but how can i specify it can i have any example for layerd layout usage can i add table nodes to different layers at run time.

my requirement is adding tablenode to different layer depends on join sequesnce

means join sequence of tablenode
1 means in column 1
2 means in column 2
3 in column 3 so on ..up to 10 columns

each columns can have no of table nodes

please give me sample if possible

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #3 - Feb 24th, 2011 at 3:54pm
Print Post  
Hi,

Set LayeredLayout.EnableCustomLayers = true and assign your join number to node.LayoutTraits[LayeredLayoutTraits.Layer]. This won't work if you have links between tables on the same layer. If you need that, try using a vertical SwimlaneLayout instead, where the join number is assigned to LayoutTraits[SwimlaneLayoutTraits.Lane]. Note that for both layout classes the Layer/Lane indices are zero-based.

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


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
Re: treeviewlayout
Reply #4 - Feb 24th, 2011 at 4:13pm
Print Post  
hi,

yes there are links between nodes in same layer and and doesnt show SwimlaneLayout Class in our version
what should i do...?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #5 - Feb 24th, 2011 at 5:16pm
Print Post  
Try setting IgnoreLayout = true on such links. Then you will have to implement some additional processing for them after calling Arrange(), to set their control points appropriately to avoid crossing the tables.
  
Back to top
 
IP Logged
 
chimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
container control
Reply #6 - Feb 25th, 2011 at 10:07am
Print Post  
hai

how can i set the contianer control at the bottom of the diagram...?
i created using

diagram1.factory.createcontainernode(10,100,diagramview1.width,40)

i tried by setting different x,y co-ordinates but still floating to top or spreading till bottom

is there any float property..?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #7 - Feb 25th, 2011 at 10:42am
Print Post  
Hi,

After creating and arranging the previous nodes, call GetContentBounds() to find the bounding rectangle for all content in the diagram. Then create the container at (10, contentRect.Bottom + some_offset).

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


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
Re: treeviewlayout
Reply #8 - Mar 1st, 2011 at 3:40pm
Print Post  
hi,

some nodes are added to container in between
some to diagram so how  can i display container at bottom of diagram before adding nodes

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #9 - Mar 1st, 2011 at 4:10pm
Print Post  
Hi,

You could place it at Y = diagram.Bounds.Bottom - container.Bounds.Height.

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


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
Re: treeviewlayout
Reply #10 - Mar 1st, 2011 at 4:21pm
Print Post  
hi,

container = diagram1.Factory.CreateContainerNode(0,diagram1.Bounds.Bottom-container.bounds.h
eight,500,20);

gives error as container is not created before. and null reference error

thanks


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #11 - Mar 1st, 2011 at 4:50pm
Print Post  
Ok, try with diagram1.Factory.CreateContainerNode(0,diagram1.Bounds.Bottom-20,500,20);
  
Back to top
 
IP Logged
 
chimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Feb 24th, 2011
Re: treeviewlayout
Reply #12 - Mar 1st, 2011 at 5:38pm
Print Post  
Hi

thank for response.
i did call setbound()
but nodes addded to container are not getting position in it i need to minimise and the maxmise then it is. they look like hanging at the border of container

what method i need to refresh that

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: treeviewlayout
Reply #13 - Mar 1st, 2011 at 6:23pm
Print Post  
Hi,

Call container.UpdateBounds() after adding its child nodes.

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


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 9th, 2011
Re: treeviewlayout
Reply #14 - Mar 9th, 2011 at 11:13am
Print Post  
Hi

how can i set the scroll bars property for container.
is any property available

and i set the container and node are added on top basing on points but not added to container

when i click container it hides the nodes.how can i set that so that i doesnt come to front it just for appearance

thanks


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint