Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi i am treenode on screen in treeview format.

normally when you click one treenode, it will expand it's child. right?

when you click other treenode, it's child should expand and before treenode should collapse what we expanded early.


pls help me out.
Posted
Comments
Sergey Alexandrovich Kryukov 5-Aug-13 1:41am    
No, it's not right. The node not just expands. And it does not "expand the child". The node expands (itself, showing children), or collapses or, if there are no children, stays the same.
Help with what?
—SA
christhuxavier 5-Aug-13 4:55am    
hi you are correct. so what i need, when you click node it will expand it's child , second time you will click some other node to expand it's child right? that time first time expanded node should collapse automatically.

Am i cleared. pls help me.

1 solution

hi you are correct. so what i need, when you click node it will expand it's child , second time you will click some other node to expand it's child right? that time first time expanded node should collapse automatically.

Am i cleared. pls help me.
 
Share this answer
 

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