KaxMenuItemItemTemplate Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public ITemplate ItemTemplate { get; set; }
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.
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>