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
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the System. |
#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 Root
Note
An Root