This is a migrated thread and some comments may be shown as answers.

[Solved] Show certain levels of Tree View

1 Answer 118 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 13 Nov 2009, 02:31 PM
Hi ,

is it possible to show certain levels of the tree view?
I have a hierarchy with 7 levels and like to begin the display of this hierarchy dynamically on other levels than the first one.
Or do I have to build the hierarchy different in the datasource?


Thanks for your help.

Kind regards

Stefan

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 13 Nov 2009, 03:53 PM
If you are binding the data to the TreeView through a datasource this will probably involve a lot of javascript to get the functionality. I would recommend that you read through the client-side API. What you could do would be to find the parent node that you are interested in finding, and then gather a collection of the child nodes of this node and add it to the new node that you want to show off the hierarchy of.

You could also potentially re-create the hierarchy in your database (might be easier), but it all depends on where your preference in creating this behavior lies.
Tags
TreeView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or