How to Use ToolTipTextNeeded

2 posts, 0 answers
  1. Sade
    Sade avatar
    1 posts
    Member since:
    May 2016

    Posted 29 May 2016 Link to this post

    I want to show some text when user hovers the level 3 nodes of treeview using ToolTipTextNeeded event. How can I do this?
  2. Dimitar
    Dimitar avatar
    2566 posts

    Posted 30 May 2016 Link to this post

    Hello Sade,

    Thank you for writing.

    You need to check the node level. For example:
    private void RadTreeView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
        var node = sender as TreeNodeElement;
        if (node != null && node.Data.Level == 2)
            e.ToolTipText = "test";

    Let me know if I can assist you further.

    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top