12.8. TreeView

TreeView is a component that displays hierarchical information in a visual tree. It has many of the features of the RadTreeView for ASP.NET AJAX. A TreeView is composed of TreeViewItem objects, and these items have properties that enable specific functionality such as drag-and-drop, check boxes, and so forth.

TreeView can be created and populated with nodes declaratively or bound to a view model object or site map. It supports load on demand of items and animation effects and provides a client API.

12.8.1. Creating a TreeView Declaratively and Enabling Check Boxes

Let's examine how to populate a TreeView declaratively and how to enable the check boxes functionality with the ShowCheckBox property.

Listing 12-28 shows a TreeView ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.