Tab
A newer version of this page is available. Switch to the current version.

NavBarItem.TextTemplate Property

Gets or sets a template used to display the text content of the item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
ITemplate

null

An object supporting the ITemplate interface which contains the template used to display the item’s text content.

Remarks

Use the TextTemplate property to control the contents of the current item. The template defined using this property replaces the text content of an item - in particular, the item’s text specified.

Note that any style settings defined for the item via specific properties (such as the ASPxNavBar.ItemStyle or NavBarGroup.ItemStyle) are still in effect for the item whose content is specified through using the TextTemplateproperty.

In order to define the common text content for all items within a navbar control, the navbar’s ASPxNavBar.ItemTextTemplate property can be used. A template for items of a particular group can be specified via the NavBarGroup.ItemTextTemplate property.

NOTE

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