Hello,
I am looking for a way to feed my WebDatatree with a data source or build directly in code behind (node by node)
The problem is that I do not know in advance the number of child node.I used the default component by Microsoft and built each node from a single SQL query that me went back every node and hierarchy.Would you have an example to come to this?thank you for your help.
An example of data that I want displayed:
· Node1
· Node2
o Node2.1
o Node2.2
· Node3
o Node3.1
· Node4
o Node4.1
§ Node4.1.1
§ Node4.1.2
o Node4.2
· Node5
· Node6
o Node6.1
§ Node6.1.1
· Node6.1.1.1
· Etc…
Hello julienm,
I've been looking into your scenario and I think that you probably can work it out as manually generate each node of the tree at runtime. I would like to point out the following sources that can help you to get started with the component:
Best regards,
Hi Radoslav MinchevI had already looked at the various examples not found a concrete exmple my example.I had to create the treeview blows directly in code behind by creating node by node which is an example for other forumers;)
private
I dropped a tree and a button on the page and in code behid I'm generating the nodes like this :
When i trigger a postback with the button the tree gets reloaded with the state that was previously posted, with other words the three keeps its nodes expanded .