Skip to Content
author's profile photo Former Member
Former Member

How to expand nodes of TreeByNestingTableColumn

Hello,

I have a mastercolumn of type TreeByNestingTableColumn in my Table to provide a tree structure within one column.

I need to automatically expand/collapse particular and/or all nodes of the tree structure. The tree is created dynamically by filling a recursive node at runtime.

I'd be thankful for any idea on this.

Thanks,

Lars

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2005 at 10:15 AM

    Lars,

    Given:

    1. Your table is bound to recursive node (no other way for TreeByNestingTableColumn)

    2. In recursive node there is a boolean attribute that hold expanded / collapsed state. Corresponding property of TreeByNestingTableColumn is bound to this attribute.

    Then:

    Just traverse elements / sub-nodes (for recursion) recursively (pardons for tautology) from given element and set this boolean attribute to either true or false to expand / collapse tree.

    Valery Silaev

    EPAM Systems

    http://www.NetWeaverTeam.com/

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Valery,

      This would only work if the children are loaded right? If the children are not loaded then there will be no child nodes to traverse. Im facing this scenario now.

      Say I want to expand all nodes in my TreeByNestingTableColumn the first time the application is launched? How would I do this? At this point only the root element is loaded into the table. Further children elements are loaded only when I click the expand triangle of each node.

      M

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2005 at 01:30 PM

    Valery,

    thanks a lot. That should work.

    Lars

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.