hi,

i have a tree view which gets populated using object. if i have 4 nodes and click on top one it gets expanded at the bottom.

e.g.

node1
node2
node3
node4

if i click on node1 i get

node1
node2
node3
node4
node1 children

here is my code treeview.add(newnode)

can you guys help me please.

HI,
MOST PROBABLY YOU MISSED THE PARENT NODE REFERENCE. READ THE BELOW LINK WILL HELP YOU LOT:
http://www.15seconds.com/issue/041117.htm

Other you have to upload your complete recursive function which will help us to undertand your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.