Click or drag to resize
KaxMenuItemItemTemplate Property
Gets or sets the template for displaying the item.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public ITemplate ItemTemplate { get; set; }

Property Value

Type: ITemplate

A ITemplate implemented object that contains the template for displaying the item. The default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.

To specify common display for all menu items use the ItemTemplate property of the KaxMenu class.

Examples

The following template demonstrates how to add a Calendar control in certain menu item.

ASPX:

<kettic:KaxMenu runat="server" ID="KaxMenu1">

<Items>

<kettic:KaxMenuItem Text="Date">

<Items>

<kettic:KaxMenuItem Text="SelectDate">

<ItemTemplate>

<asp:Calendar runat="server" ID="Calendar1" />

</ItemTemplate>

</kettic:KaxMenuItem>

</Items>

</kettic:KaxMenuItem>

</Items>

</kettic:KaxMenu>

See Also