ASPxTreeView.NodeTemplate Property
Gets or sets a common template used for displaying the content of all nodes within an ASPxTreeView control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System.Web.UI.ITemplate interface, which contains the template used for displaying the content of all nodes within an ASPxTreeView. |
Remarks
Use the NodeTemplate property to define a common content for all nodes within an ASPxTreeView control. The template created using this property replaces the content of each node within the ASPxTreeView - in particular, the node’s check box, image and specified text.
The content of an individual node can be defined using the node’s TreeViewNode.Template property.
Note
Once a template defined via the NodeTemplate property is created within a control, it is instantiated within a container object of the TreeViewNodeTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.