Home - Forums-.NET - FlyTreeView (ASP.NET) - Find node in v4.3.5.79

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Find node in v4.3.5.79
Link Posted: 17-Mar-2009 11:42
Evgeny,

How can I get the childnodes of a node? In prior versions this was possible with

FlyTreeNodeCollection collection = parentnode.ChildNodes.FindByValue(path[i], false);

or

FlyTreeNode node = parentnode.ChildNodes.FindByValue(path[i], false);

But in this version I was not able to find the right statement. Would you help me please?

Thank you in advance,
Meike
Link Posted: 17-Mar-2009 12:10
Current FlyTreeNodeCollection class (ChildNodes property)
contains FindAllByValue (returns collection) along with FindByValue (returns first matching node).

So what is expected behavior for the statement?
Link Posted: 18-Mar-2009 02:14
I just wanted to get the child nodes of the next level, not all childs in all levels.
Finally, I want to expand the tree step by step. Perhaps there is a more simple possibility?
Link Posted: 18-Mar-2009 02:24
FlyTreeNodeCollection still contains FindAllByValue(string value, bool recurseChildren) method (see second parameter).

Isn't the ExpandLevel property what you need?