How to Use ToolTipTextNeeded

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

    Posted 29 May 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
    Admin
    Dimitar avatar
    1415 posts

    Posted 30 May 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.

    Regards,
    Dimitar
    Telerik
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top