| Author |
|
| Company |
Microsoft |
| Source Code Available |
Yes |
| License Type |
Free |
| Submitted On |
January 24, 2002 |
| Updated on |
August 05, 2008 |
| .NET Framework |
1.x |
| Cost |
$ 0 |
Description
The TreeView control facilitates authoring of user interfaces that render hierarchical datasets, folder views, and other similar data structures. This control implements several powerful features, including support for data binding and rich Dynamic HTML (DHTML) behaviors in uplevel browsers. In most scenarios, a TreeView can be authored declaratively; however, this control can also be programmed extensively on the client or server.
Check out the Source Code now!
Syntax Example
<mytree:treeview runat="server">
<mytree:treenode
text="My first Tree Node">
<mytree:treenode
text="My second Tree Node">
</mytree:treenode>
</mytree:treenode>
</mytree:treeview>
Reviews
Submit a review
Relatively Flexible
Reviewed by: IthraelArlet on Thursday, August 14, 2003
3 Stars
I've found the Microsoft contribution to the tree control market to be a quite reliable. It is easy to set up, has a lot of documentation and includes better event handling than many of the other controls of this type.
I have written quite a few extentions to this object and found a number of pros and cons to the implementation. While it took more code than I would have expected (and a lot of recursive functions) it was relatively easy to add support to pre-select a node, draw bread-trail navigation based on the selection, cross-reference child attributes for in-content navigation and generate a site map based on the tree. Likewise, given that it calls XML via HTTP (an interesting design decision) it is easy to dynamically generate the XML data model based on user properties, data content or other variables.
On the flipside, the data model itself is relatively inflexible. Adding additional data attributes (such as descriptions for tooltips) or non-string based data (such as nested web forms) is