New to Telerik UI for WinForms? Download free 30-day trial

Tooltips

Enabling Tooltips

To enable the tooltips you need to set the ShowNodeToolTips property.

radTreeView1.TreeViewElement.ShowNodeToolTips = true;

radTreeView1.TreeViewElement.ShowNodeToolTips = True

Setting Tooltips

You can directly assign a tooltip to each node in RadTreeView.

radTreeView1.Nodes[3].ToolTipText = "Node 3";

radTreeView1.Nodes(3).ToolTipText = "Node 3"

Using the ToolTipTextNeeded event

You can dynamically set the tooltips at runtime. This is achieved by using the ToolTipTextNeeded event.

private void RadTreeView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    var node = sender as TreeNodeElement;
    if (node != null)
    {
        e.ToolTipText = node.Data.Text;
    }
}

Private Sub RadTreeView1_ToolTipTextNeeded(ByVal sender As Object, ByVal e As Telerik.WinControls.ToolTipTextNeededEventArgs)
    Dim node = TryCast(sender, TreeNodeElement)
    If node IsNot Nothing Then
        e.ToolTipText = node.Data.Text
    End If
End Sub

In this article