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

Templates

You can completely replace the look and feel of ASPxNavBar view elements using templates. The control allows you to create templates for four element types: the item text, the entire item content, the group header, and the group content. Templates can be defined at different object levels at the same time (for instance, at the control level and at the group level). In this case, templates created at a lower level in the logical tree take precedence over other templates for the same element (a template defined at the group level has precedence over the same element template created at the control level).

NavBar_Templates

The table below lists the members used to create templates.

Item level templates

Group level templates

Control level templates

Item text template

NavBarItem.TextTemplate

NavBarGroup.ItemTextTemplate

ASPxNavBar.ItemTextTemplate

Item template

NavBarItem.Template

NavBarGroup.ItemTemplate

ASPxNavBar.ItemTemplate

Group header template

-

NavBarGroup.HeaderTemplate,

NavBarGroup.HeaderTemplateCollapsed

ASPxNavBar.GroupHeaderTemplate,

ASPxNavBar.GroupHeaderTemplateCollapsed

Group content template

-

NavBarGroup.ContentTemplate

ASPxNavBar.GroupContentTemplate

See Also