Skip to main content
A newer version of this page is available. .
Tab

ASPxNavBar.ItemTextTemplate Property

Gets or sets a common template used for displaying the text content of all items within the navbar control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
ITemplate *null*

An object supporting the ITemplate interface which contains the template used for displaying the text content of all items within the navbar.

Remarks

Use the ItemTextTemplate property to define a common content for all items within the current navbar control. The template created using this property replaces the text content of each item within the navbar - in particular, the item’s text specified.

Note that any style settings defined for the items via the specific properties (such as the ASPxNavBar.ItemStyle or NavBarGroup.ItemStyle) are still in effect for the items whose text contents are specified using the ItemTextTemplate property.

The text content of items within a particular group can be defined using the group’s NavBarGroup.ItemTextTemplate property.

Note

Once a template defined via the ItemTextTemplate property is created within a control, it is instantiated within a container object of the NavBarItemTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.

See Also