Skip to Content
avatar image
Former Member

Load complete tree

Hi All,

How can I load an entire tree in a single method ( even recursive) without using "OnLoadChildren" event.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 20, 2011 at 07:57 PM

    It is not really easy to explain . You have to arrange your context_node such a way that you have the data in one context node.

    I have done something like this.

    Tree_root ..(0..n)

    tree_type (0..n)

    recurursive_node

    - hasChildren

    - isExpanded

    - Description

    In the ViewLayout.

    Tree UI element DataSource is binded to the Tree_root.

    TreeNodeType datasource is binded to tree_type. also bind the hasChildren,isExpanded to the concern properties in TreeNodeType.

    Bind the Text property to the Description attribute.

    Now, you should make sure that the about Context is getting filled correctly.

    Add comment
    10|10000 characters needed characters exceeded