Skip to main content
Tab

ASPxSiteMapControlBase.NodeTextTemplate Property

Gets or sets a template used for displaying the text content of all the site map nodes (at all hierarchy levels).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(null)]
public virtual ITemplate NodeTextTemplate { get; set; }

Property Value

Type Default Description
ITemplate null

An object supporting the System.Web.UI.ITemplate interface which contains the template used for displaying the text content of all the site map nodes.

Remarks

Use the NodeTextTemplate property to control the text contents of all the nodes within the current site map control. The template defined using this property replaces the text content of each node (in particular, the text specified) but doesn’t affect the defined image.

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 text contents are specified, using the NodeTextTemplate property.

In order to define a common text content for all the site map nodes that belong to a particular hierarchy level, use the LevelProperties.NodeTextTemplate property of the required level.

Note

Once a template defined via the NodeTextTemplate property is created within a tab 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.

See Also