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

Find Child Nodes by Text

4 Answers 72 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 19 Jul 2010, 08:25 AM
I have been using your example to retain open TreeNodes after URL navigation (http://www.telerik.com/help/aspnet/treeview/tree_retain_nodes_after_urlnavigation.html).

This works fine, but just for nodes on the first level, not child nodes.
What do I have to do to search through ALL nodes and their children?

Thanks in advance for your help

Best regards

Thomas

4 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 20 Jul 2010, 08:05 PM
Is there no way to do that?
0
Nikolay Tsenkov
Telerik team
answered on 21 Jul 2010, 02:24 PM
Hi Thomas,

This should work for the entire tree, not only the root nodes.
Could you, please, send me a simple project reproducing this issue?
Thanks!

Hope that soon we will resolve the problem!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Thomas
Top achievements
Rank 1
answered on 21 Jul 2010, 03:37 PM
Hello Nikolay,

sorry, my fault. I can search for the node and find it, but I can't expand it:

Dim myNode As RadTreeNode = CType(RadTreeView_Kategorien.FindNodeByText(Session("Kategorie")), RadTreeNode)
myNode.Expanded = True

How can I expand the (parent) node?

Thanks in advance for your help

Best regards

Thomas
0
Thomas
Top achievements
Rank 1
answered on 21 Jul 2010, 04:38 PM
OK, I didn't see the "parentNode" property.
Everything works now, thank you!

Best regards

Thomas
Tags
TreeView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or