ASPxMenuBase.RootItemTemplate Property
Gets or sets a common template used for displaying the content of all root items within a menu control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System.Web.UI.ITemplate interface which contains the template used to display the content of all root items within a menu. |
Remarks
Use the RootItemTemplate property to define the common content for the root menu items within a menu control. The template created using this property replaces the content of each root menu item - in particular, the item’s image and text specified.
Note that any style settings defined for the menu items via specific properties (such as the ASPxMenuBase.ItemStyle) are still in effect for the root menu items whose contents are specified, using the RootItemTemplate property.
The content of an individual menu item can be defined using the item’s MenuItem.Template property. A template for subitems can be specified via the ASPxMenuBase.ItemTemplate property.
Note
Once a template defined via the RootItemTemplate property is created within a tab control, it is instantiated within a container object of the MenuItemTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.
Note
An RootItemTemplate cannot contain another menu control.