This is a migrated thread and some comments may be shown as answers.

Tooltip doesn't work for a RadButton

3 Answers 274 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike Aerni
Top achievements
Rank 1
Mike Aerni asked on 06 Aug 2010, 02:32 AM
It's late, and maybe I'm missing something easy.  But if I drop a simple RadButton on a form, I cannot get tooltips to show.  I only can get tooltips to show for buttons on a toolstrip.  I've tried setting AutoTooltip on the root item and the RadButtonElement inside the designer.

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 11 Aug 2010, 01:17 PM
Hi Mike Aerni,

Thank you for contacting us.

To show the ToopTip of a RadButton, you should set the ToolTipText property of its ButtonElement. Here is a sample snippet:

this.radButton1.ButtonElement.ToolTipText = "This is a RadButton";

I hope this helps. Let me know if I can assist you further.

Kind regards,
Boryana
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
0
Mike Aerni
Top achievements
Rank 1
answered on 11 Aug 2010, 04:45 PM
OK, that fixes it if I add the tooltip programmatically.  Not if I set it in the tooltip in the designer.  This may be of interest to you -- if I set the tooltip in the designer, I don't see the tooltip set in the Form.Designer.cs file or ANY of the project files.  Yet Telerik is persisting the tooltip somewhere because it's still there when I go back to the designer.
0
Boryana
Telerik team
answered on 16 Aug 2010, 08:01 PM
Hi Mike Aerni,

Thanks for writing back.

Actually, you cannot set the ToolTip of a RadButton at design time. Please note that setting the ToolTipText of the RadButton's RootElement will not work. There are two ways to set a ToolTip:

1. Set the ToolTipText of the ButtonElement (already suggested in my previous post):

this.radButton1.ButtonElement.ToolTipText = "My RadButton";

2. Handling the ToolTipTextNeeded event:

private void radButton1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    e.ToolTipText = "My RadButton";
}

I hope you find the above information useful. Let me know if you have further questions.

Best wishes,
Boryana
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
Tags
General Discussions
Asked by
Mike Aerni
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Mike Aerni
Top achievements
Rank 1
Share this question
or