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

how to get node.nodes

2 Answers 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
zong
Top achievements
Rank 1
zong asked on 27 Aug 2008, 08:57 AM
I have a sub

    Public Sub NodeLocation(ByRef tree_root As RadTreeNode, ByVal  a As Byte, ByVal node_value As String())

        Dim find_node As RadTreeNodeCollection

        find_node = tree_root.Nodes 'give find_node  tree_root's childnode
        End sub
tree_root is my tree's root

but when i debug my program,I found my find_node is nothing.
why,please help me.thanks

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Aug 2008, 11:28 AM
Hi Zong,

I tested the provided code and it worked as expected. Please check the attached sample project based on your code for a reference.

Greetings,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
zong
Top achievements
Rank 1
answered on 29 Aug 2008, 01:24 AM
but I found my program can't find node's childnode yet.all of my tree's node is dynamic program add.not static add.and when i use node.nodes(0). the node's child is already add.is any problem of program?
Tags
TreeView
Asked by
zong
Top achievements
Rank 1
Answers by
Yana
Telerik team
zong
Top achievements
Rank 1
Share this question
or