How to put Expand all and Collapse all button for a asp.net TreeView Control ?

V

vivek

Well I have been using the new Microsoft asp.net 2.0 TreeView Control
in my application. I need to provide some kind of "Expand All" and
"Collapse All" button. This button should not post the form back to the
server but should work by Javascript only. Any suggestion is welcome.

Thanks

Vivek N
 
D

David Barkol

Try this:

TreeView_ToggleNode(ctl00_MainContent_TreeView1_Data,0,ctl00_MainContent_TreeView1n0,'-',ctl00_MainContent_TreeView1n0Nodes);

David Barkol
www.neudesic.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top