Skip to main content
Tab

NavBarGroup.ItemTemplate Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(null)]
public virtual ITemplate ItemTemplate { 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 content of items within the group.

Remarks

Use the ItemTemplate property to control the contents of items within the current group. The template defined using this property replaces the content of each item within the group - in particular, the item’s image and 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 group’s items whose contents are specified through using the ItemTemplate property.

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

Note

Once a template defined via the ItemTemplate 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