Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nested TableNodes (Read 972 times)
RodionP
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 28th, 2009
Nested TableNodes
May 28th, 2009 at 7:04pm
Print Post  
Hi,

I'm trying to insert another TableNode into cell of existing TableNode so that I could collapse my table recursively.

I have a couple of collapsible cells, and I want all the bottom cells to collapse when upper ones get collapsed.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nested TableNodes
Reply #1 - May 28th, 2009 at 7:18pm
Print Post  
Hi,

There is no built-in support for table nesting available, but it might be possible to implement something similar with some event handling.

There is a public TableNode.GetSpannedCellRect method in v5.3 that might help in this case:
https://mindfusion.eu/_beta/fcnet53.zip

Set the Bounds property of the nested table to the result of that method and call nestedTable.AttachTo(parentTable). Now if the user moves the parent table, the nested table will move too. Finally, handle the TableSectionCollapsed/Expanded events raised for the parent table to hide or show the nested tables.

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