Skip to main content

TreeViewNode.ToolTip Property

Gets or sets the current node’s tooltip text.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public string ToolTip { get; set; }

Property Value

Type Default Description
String String.Empty

A string which specifies the text content of the current node’s tooltip.


Use the ToolTip property to define a tooltip text for an individual node object. If a string is assigned to a node’s ToolTip property, the tooltip is shown whenever the mouse cursor pauses over the node. If the ToolTip property is set to an empty string (String.Empty), the tooltip is never shown.


The code below adds a node with the default settings to the ASPxTreeView’s child collection, and then initializes its main properties.

The image below shows the result.

TreeView - Add

using DevExpress.Web.ASPxTreeView;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e) {
        TreeViewNode node = ASPxTreeView1.Nodes.Add();
        node.Text = "Home";
        node.Image.Url = "~/Images/Home.png";
        node.Name = "Home page";
        node.NavigateUrl = "";
        node.Target = "_blank";
        node.ToolTip = "DevEx Home Page";
See Also