KaxNavigationBarItemTemplate Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public ITemplate ItemTemplate { get; set; }
A ITemplate implemented object that contains the template for displaying panel items. The default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.
The ItemTemplate property sets a template that will be used for all panel items.
To specify unique display for individual items use the ItemTemplate property of the KaxNavigationItem class.
The following example demonstrates how to use the ItemTemplate property to add a CheckBox for each item.
ASPX:
<kettic:KaxNavigationBar runat="server" ID="KaxNavigationBar1">
<ItemTemplate>
<asp:CheckBox runat="server" ID="CheckBox"></asp:CheckBox>
<asp:Label runat="server" ID="Label1"Text='<%# DataBinder.Eval(Container, "Text") %>'
></asp:Label>
</ItemTemplate>
<Items>
<kettic:KaxNavigationItem Text="News" />
<kettic:KaxNavigationItem Text="Sports" />
<kettic:KaxNavigationItem Text="Games" />
</Items>
</kettic:KaxNavigationBar>