ASPxSiteMapControlBase.NodeTemplate Property
Gets or sets a template used for displaying the content of all the site map nodes (at all hierarchy levels).
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System. |
#Remarks
Use the NodeTemplate property to control the contents of all the nodes within the current site map control. The template defined using this property replaces the content of each node - 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 using the NodeTemplate property.
In order to define a common content for all the site map nodes that belong to a particular hierarchy level, use the LevelProperties.NodeTemplate property of the required level.
Note
Once a template defined via the Node