NavBarGroup.ItemTextTemplate Property

Gets or sets a template used for displaying the text content of the group’s items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll


public virtual ITemplate ItemTextTemplate { get; set; }

Property Value

Type Default Description


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


Use the ItemTextTemplate property to control the content of items within the current group. The template defined using this property replaces the text content of each item within the group - in particular, the item’s text specified.

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

In order to define a common text content for all items within a navbar control, the navbar’s ASPxNavBar.ItemTextTemplate property can be used.


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