LevelProperties.NodeTemplate Property
Gets or sets a template used for displaying the content of all the site map nodes of the current level.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
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 the site map nodes within the level. |
Remarks
Use the NodeTemplate property to control the contents of the site map nodes that belong to the current hierarchy level. The template defined using this property replaces the content of each node of the level - in particular, the image and text specified.
Note that any style settings defined for the site map nodes via the specific properties (such as the ASPxSiteMapControl.DefaultLevelProperties, ASPxSiteMapControl.LevelProperties, ASPxSiteMapControlBase.ColumnStyle, etc.) are still in effect for the level’s site map nodes whose contents are specified through using the NodeTemplate property.
In order to define a common content for all the site map nodes within a site map control, the control’s ASPxSiteMapControlBase.NodeTemplate property can be used.
Note
Once a template defined via the NodeTemplate property is created within a control, it is instantiated within a container object of the NodeTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.