Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can table row heirarchy go deeper than one level? (Read 1825 times)
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Can table row heirarchy go deeper than one level?
Jul 1st, 2008 at 4:11pm
Print Post  
I need to display data in each diagram node as a tree view, but the TableNode class only seems to allow one level of expansion.  Is it possible to add more, or at least fake it somehow?

I know I could use the ControlNode class to host a tree view but this has it's limitations, so I would like to use the table view if possible.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can table row heirarchy go deeper than one lev
Reply #1 - Jul 1st, 2008 at 6:08pm
Print Post  
Only one level of expansion is possible at this time. I suppose you can fake a deeper hierarchy by adding more columns and displaying the data for an Nth-level tree item in the Nth cell of the respective row. Collapsing the rows could be implemented by seting their Height to 0.

Another possibility is to create a custom node type that renders the tree data in its Draw implementation.

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



Posts: 30
Joined: Jul 1st, 2008
Re: Can table row heirarchy go deeper than one lev
Reply #2 - Jul 2nd, 2008 at 8:04am
Print Post  
Thanks Stoyan,

I think I'll try and fake it for now (although I think this would be a useful featiure for you to add in future), but is there a way to access the expansion icons (+/-) that are used in the table, or do I just have to copy them and make my own icons?

Thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can table row heirarchy go deeper than one lev
Reply #3 - Jul 2nd, 2008 at 9:02am
Print Post  
Hi Brian,

They aren't really icons, but you can draw them by calling the InternalUtils.DrawExpandButton method. You could do that from the DrawCell event handler if you enable TableNode.CellCustomDraw.

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