Free Trial Buy Now

Tree View - Templates

Description

The ASPxTreeView control supports the template technology, allowing you to completely customize the control's appearance and layout.

The look of the ASPxTreeView control's default elements can be completely modified by creating a specific template which defines how an element will be rendered by a client browser. The ASPxTreeView control allows you to create templates for two element types: the node text content and the entire node content. You can apply templates for all identical elements within the ASPxTreeView (using control level templates) or for a particular element (using node level templates). Each template can consist of a group of HTML controls. Each HTML control used in a template can be bound to the property values of the rendered node.

In this demo, the TextTemplate property of the parent nodes (the 'ASP.NET AJAX Controls' and 'WinForms Controls') is used to replace node texts with a custom combination of an image and text elements. The contents of child nodes are completely defined using their Template property. These templates contain an image and two text elements representing textual node characteristics (Text and Name property values) in two lines.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.