Trouble using FindNodeByValue with TreeNodeExpandMode.ServerSideCallBack

2 posts, 1 answers
  1. John Adkins
    John Adkins avatar
    4 posts
    Member since:
    Oct 2009

    Posted 12 Jan 2010 Link to this post

     

     

    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

     

     

  2. Answer
    John Adkins
    John Adkins avatar
    4 posts
    Member since:
    Oct 2009

    Posted 13 Jan 2010 Link to this post

    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
Back to Top