Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Am facing one issue, I have one tree view.
Inside that i have 3 child nodes.

problem here is, data coming properly but the expansion\collapse symbol of last node is not coming (showing red into mark)
also am unable to click and collapse that (showing error 'undefined data').
If i add a new child node to my last node then it will show the symbol but the newly added child node will note work (same problem).
So some problems with the last node.

Here am adding last node as child node instead of that can i add it as content(like text,label..).

What is the problem with last node?
How to add this last node?

Any solution?
Posted
Updated 7-Mar-14 0:10am
v3
Comments
JoCodes 7-Mar-14 2:04am    
Add the code you tried and mention where the error is.

How do you add nodes to the tree view?

What I done is created a new form and added a new tree view.


after that I went to the tree view properties @ node and clicked on the right at collection.

it opens the tree Node Editor and from there I added the nodes and child nodes.


I tried changing all the properties to get the same error that you got but no luck.

can you give more information about how you did it? if in maybe code post the code.
 
Share this answer
 
Comments
Am Gayathri 7-Mar-14 6:56am    
My situation is different.
Actually am working on sharepoint webpart, am adding treeviews programmatically.
ok,

Could you post the code? then maybe we can assist.
 
Share this answer
 
Comments
Vedat Ozan Oner 7-Mar-14 7:12am    
this is not a solution, use 'Comments' area.
Dr Drastic 7-Mar-14 7:14am    
My bad..
I had a problem similar to that,

What I did is I went into the form designer and remove the code for my child nodes, and afterwards I added the child nodes from fresh.

it solved my issue hopefully it will work for you!.
 
Share this answer
 
Comments
Am Gayathri 7-Mar-14 6:10am    
No Its not working :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900