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

ToolTipText needed

3 Answers 140 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Juan Pablo
Top achievements
Rank 1
Juan Pablo asked on 03 Dec 2008, 09:46 PM
Hello!
Look, I have a user control that works as a ToolBar that has some radbuttons on it. Those buttons are showing an image stored in the resources of the project, and I need to show a ToolTipText.

First I set the needed text through the properties window of each button (inside the RootElement property), and it didn't work.

Then I went to the designer.cs of the control and set manually the property (myButton.RootElement.ToolTipText = "some text"), and it didn't work.

Then, inside the designer.cs of the control I set manually the property in this way: ((Telerik.WinControls.UI.RadButtonElement)(MyButton.GetChildAt(0))).ToolTipText = "Open Model";. And guess what? ... It didn't work also!

Please help me, I don't know what else I can do.

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 08 Dec 2008, 12:35 PM
Hi Juan Pablo,

Currently, we have an issue with the ToolTipText property serialization. This issue will be addressed in one of our next versions.

Regarding your approach, if you manually insert a code line for this property in the designer and make even a small change in the user control, this line will be automatically removed.

Therefore, I would suggest setting the ToolTipText property in the user control's constructor:

public UserControl1()  
{  
    InitializeComponent();  
 
    this.radButton1.ButtonElement.ToolTipText = "Open Model";  

I hope this helps. If you have additional questions, feel free to contact me.

Regards,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shirya
Top achievements
Rank 1
answered on 17 Aug 2009, 05:25 PM
Hello,
I have the same problem.
Do you know when the issue will be corrected?
thank you
0
Nick
Telerik team
answered on 18 Aug 2009, 07:42 AM
Hello Shirya,

The issue will be most probably fixed in the next release.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Juan Pablo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Shirya
Top achievements
Rank 1
Nick
Telerik team
Share this question
or