Click or drag to resize
KaxTreeNodeImageUrl Property
Gets or sets the URL to an image which is displayed next to the text of a node.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public override string ImageUrl { get; set; }

Property Value

Type: String
The URL to the image to display for the node. The default value is empty string which means by default no image is displayed.
Remarks
Use the ImageUrl property to specify a custom image that will be displayed before the text of the current node.
Examples

The following example demonstrates how to specify the image to display for the node using the ImageUrl property.

<kettic:KaxTreeView id="KaxTreeView1" runat="server">
<Nodes>
<kettic:KaxTreeNodeImageUrl="~/Img/inbox.gif" Text="Index"></kettic:KaxTreeNode>
<kettic:KaxTreeNodeImageUrl="~/Img/outbox.gif" Text="Outbox"></kettic:KaxTreeNode>
<kettic:KaxTreeNodeImageUrl="~/Img/trash.gif" Text="Trash"></kettic:KaxTreeNode>
<kettic:KaxTreeNodeImageUrl="~/Img/meetings.gif" Text="Meetings"></kettic:KaxTreeNode>
</Nodes>
</kettic:KaxTreeView>

See Also