Click or drag to resize
SiteMapLevelSettingNodeTemplate Property
Gets or sets the template for displaying the nodes on the specified level.

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 NodeTemplate { get; set; }

Property Value

Type: ITemplate

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 template for a single node use the NodeTemplate property of the KaxSiteMapNode control.

Examples

The following template demonstrates how to add an Image control in certain node.

ASPX:

<kettic: KaxSiteMap runat="server" ID="KaxSiteMap1"> <DefaultLevelSettings> <NodeTemplate> <asp:Image ID="Image1" runat="server" ImageUrl="MyImage.gif"></asp:Image> </NodeTemplate> </DefaultLevelSettings> </kettic:KaxSiteMap>

See Also