aspnet-devexpress-dot-web-dot-treeviewnode-36801492.md
Gets or sets the current node’s tooltip text.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ToolTip { get; set; }
<DefaultValue("")>
Public Property ToolTip As String
| 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.
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 = "https://www.devexpress.com/";
node.Target = "_blank";
node.ToolTip = "DevEx Home Page";
}
}
<dx:ASPxTreeView ID="ASPxTreeView1" runat="server">
</dx:ASPxTreeView>
See Also