How to set tooltiptext for CloseButton in RadRibbonForm

2 posts, 0 answers
  1. Pegah
    Pegah avatar
    1 posts
    Member since:
    Apr 2009

    Posted 15 Jun 2010 Link to this post

    I have a RadRibbonForm in my project.i want to set tooltiptext for close and minimize box.
    but when i set tooltiptext property for Imagebuttonelement in Edit UI Elements for RadRibbonBar it does'nt work.

    Please Help me.
    thanks All .
  2. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 18 Jun 2010 Link to this post

    Hi Pegah,

    Thank you writing.

    You have to use ToolTipTextNeeded event to set up ToolTips for these buttons. Please consider the following code snippet:
    void radRibbonBar1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
        if (sender is RadImageButtonElement && ((RadImageButtonElement)sender).Class == "CloseButton")
            RadItem item = sender as RadItem;
            item.ToolTipText = "Close";

    I hope this helps. Let me know if you have any additional questions.

    All the best,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top