KaxTreeNodeNodeTemplate Property |
Namespace: Kettic.AspNet.Controls
[PersistenceModeAttribute(PersistenceMode.InnerProperty)] public ITemplate NodeTemplate { get; set; }
An object implementing the ITemplate interface. 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 nodes use the NodeTemplate property of the KaxTreeView control.
The following template demonstrates how to add a Calendar control in certain node.
ASPX:
<kettic: KaxTreeView runat="server" ID="KaxTreeView1"> <Nodes> <kettic:KaxTreeNode Text="Root Node" Expanded="True" > <Nodes> <kettic:KaxTreeNode> <NodeTemplate> <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar> </NodeTemplate> </kettic:KaxTreeNode> </Nodes> </kettic:KaxTreeNode> </Nodes> </kettic:KaxTreeView>