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

Trouble using FindNodeByValue with TreeNodeExpandMode.ServerSideCallBack

1 Answer 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John Adkins
Top achievements
Rank 1
John Adkins asked on 13 Jan 2010, 05:40 AM

 

 

Version: 2009.3.1208.35

Dim
FindNode As RadTreeNode = Me.RadTreeViewTerritories.Nodes.FindNodeByValue(46)

Comes back set to Nothing, but if I set a break point and debug the object using the Immediate Window
this is the results, it finds it.  Node has 3 levels.

 

? RadTreeViewTerritories.Nodes.FindNodeByValue(46)

Nothing

? RadTreeViewTerritories.Nodes(0).Nodes(0).Nodes.FindNodeByValue(46) .Text

"Node 5"

Looks like it won't transverse the node tree.
What I'm doing wrong?

FYI: What I'm trying to do is rename the Node from a textbox and have it refresh (Server Side)

Thanks
John

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
John Adkins
Top achievements
Rank 1
answered on 13 Jan 2010, 09:28 PM
I found this in another post, I jumped the gun.

RadTreeView1.Nodes.FindItemByValue("test") will search only in the root nodes.

To search among all items use this:

RadTreeView1.FindItemByValue("test") - this will search all nodes

Thanks

John
Tags
TreeView
Asked by
John Adkins
Top achievements
Rank 1
Answers by
John Adkins
Top achievements
Rank 1
Share this question
or