cancel
Showing results for 
Search instead for 
Did you mean: 

Load complete tree

Former Member
0 Kudos

Hi All,

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

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.