RadControls for ASP.NET AJAX RadMenu items are extremely configurable. In addition to the preset skins, you can customize the appearance of menu items by adding custom images, using CSS classes, or creating custom skins. However, if you want to embed other HTML controls in a menu item, you must use templates. You can embed any content inside a RadMenu template, including:
At design time, add item templates to your RadMenu control using the Template Design Surface. RadMenu supports two types of item templates:
The global RadMenuItem template affects the appearance of all items in the menu.
Individual Item templates affect the appearance of a single menu item, overriding the global RadMenuItem template if it is set.
Note |
|---|
In addition to the item templates, RadMenu also supports a Loading Status template, which acts as a placeholder for a child group that is loaded from a Web service while a request for items is being serviced.
|
For live examples of using templates, see Templates and Multi-column Menus.
Caution |
|---|
If you add templates at runtime, assigning an object that implements the ITemplate interface to the ItemTemplate property, the template only works with items added at runtime in the codebehind.
|
Caution |
|---|
If you add items via a WebService, templates will not be applied to these items.
|
See Also