HTML tooltip for radbutton

2 posts, 0 answers
  1. TelDev
    TelDev avatar
    32 posts
    Member since:
    Dec 2009

    Posted 10 May 2012 Link to this post


    I am trying to add HTML text for tooltip for radbuttons.

    In the  ToolTipTextNeeded event i can set
    e.tooltiptext = "mytooltiptext".

    If mytooltiptext has HTML like formatting text, html tags appear on tootip. I am using the HTML tags from below link

  2. Peter
    Peter avatar
    1148 posts

    Posted 15 May 2012 Link to this post


    Thank you for writing.

    Our tool-tips are using the Windows engine for its rendering, thus they does not support our Html-like rendering. Instead, you can use our RadOffice2007ScreenTipElement that support Html-like rendering. Here is an example:
    private RadOffice2007ScreenTipElement screenTip;
    public Form1()
                this.radButton1.ScreenTipNeeded += new ScreenTipNeededEventHandler(radButton1_ScreenTipNeeded);
    private void radButton1_ScreenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
                if (screenTip == null)
                    screenTip = new Telerik.WinControls.UI.RadOffice2007ScreenTipElement();
                screenTip.CaptionLabel.Text = "<html><color=red>Hello";
                screenTip.MainTextLabel.Text = "<html><b>Text"
                this.radButton1.ButtonElement.ScreenTip = screenTip;

    More information regarding the screen tips can be found here:

    I hope this helps.

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top