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

Nodes.Find problem

1 Answer 169 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
lupotana
Top achievements
Rank 1
lupotana asked on 18 Feb 2009, 01:28 PM
Hi, I have a problem with method Find in RadTreeView.Nodes

The problem is that the function Find don't match nodes.

In the next example I do three research use these proprerty :
- Key
- Tag
- Text

But the results (Count1,Count2 and Count3) are all 0.

I don't understand.

 

RadTreeView rad = new RadTreeView(); 

 

RadTreeNode node = new RadTreeNode();

 

node.Key =

"1";

 

 

node.Tag =

"2";

 

 

node.Text =

"3";

 

 

 

rad.Nodes.Add(node);

 

 

RadTreeNode[] nodes1 = rad.Nodes.Find("1", true);

 

RadTreeNode[] nodes2 = rad.Nodes.Find("2", true);

 

RadTreeNode[] nodes3 = rad.Nodes.Find("3", true);

 

 

int count1 = nodes1.Length;

 

int count2 = nodes2.Length;

 

int count3 = nodes3.Length;

 

 

1 Answer, 1 is accepted

Sort by
0
lupotana
Top achievements
Rank 1
answered on 19 Feb 2009, 10:37 AM
I found.... the property is "Name"

Sorry... I was a very stupid :-)

Bye
Tags
Treeview
Asked by
lupotana
Top achievements
Rank 1
Answers by
lupotana
Top achievements
Rank 1
Share this question
or