How to create a tree structure
Moderator: General Moderators
How to create a tree structure
i need to create a tree structure that has to expand and collapse when the button is clicked. How do i do this
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
nested list tree? http://be.twixt.us/jquery/treeView.php
drag'n'drop-able tree? http://interface.eyecon.ro/demos/drag_drop_tree.html
"There are more javascript trees on the internet than are dream'd of in your philosophies"
drag'n'drop-able tree? http://interface.eyecon.ro/demos/drag_drop_tree.html
"There are more javascript trees on the internet than are dream'd of in your philosophies"
thanks a lot
thanks a lot but i need some code to do that. The links show only the tree structures.

- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
If you look at the code from the links provided you should get an answer to your question. Another possible resource is Nested Tree Display : Comments appreciated. I would like to point out that I built the original code for an application where several tree solutions using javascript (found using google) failed on large trees, or didn't allow me to add/remove tree nodes dynamically. I intend to look at the jquery solution and test what it's limits are but I have been meaning to do that for a couple of months. 