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

Tooltip for textbox portion of radspineditor?

7 Answers 245 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL asked on 25 Feb 2011, 11:24 PM
When I subscribe to the tooltip needed event of radspineditor, I find that the tool-tip only appears when mouse hovers over the arrow buttons of radspineditor element. How can I make sure that the same tool-tip also displays when mouse is over the text box portion of radspineditor?

I am using 2008 Q1 SP1 version.

Thanks
Sunil

7 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 28 Feb 2011, 10:54 AM
Hello Sunil,

Sorry, I’ve tried everything I could think of, setting a tool tip on the TextBoxItem inside the spinner, using the ToolTip control from the windows toolbox and could not get that tooltip to show while the mouse hovers over the spinner control.

I would suggest a normal RadTextBox or a masked editbox if the tooltip is very important for your application

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Peter
Telerik team
answered on 02 Mar 2011, 10:46 AM
Hello Sunil,

Thank you for writing.

RadSpinEditor internally uses MS TextBox for its textbox part, so in order to set a ToolTip to this textbox, you should use the standard ToolTip. Just drop the ToolTip component on your form and then in the form constructor define the tooltip text as shown below:

this.toolTip1.SetToolTip(this.radSpinEditor1.SpinElement.TextBoxItem.HostedControl, "Custom ToolTip Text");

Do not hesitate to contact us if you have other questions.

Kind regards,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
answered on 03 Mar 2011, 05:34 PM
Hi Peter,

Thanks for your help.

In the Q1 2008 SP1 version that I am using,  there is no 'TextBoxItem' property of 'SpinElement'. So I cannot implement your suggested solution.

Thanks
Sunil
0
Peter
Telerik team
answered on 09 Mar 2011, 08:15 AM
Hello Sunil,

Please accept my apologies for the misunderstanding.

You should use the Children collection for your version:

((RadTextBoxItem)radSpinEditor1.SpinElement.Children[2].Children[1])
instead of TextBoxItem property.

Do not hesitate to contact us if you have other questions.

Kind regards,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jeffrey
Top achievements
Rank 1
answered on 02 May 2014, 10:43 AM
Hi,
I'm having the same issue but in VB. I have the following code and it also only displays the tooltip only when the mouse is over the selection buttons but not in the main textbox part of the control. Any suggestions?

J
ToolTip1.SetToolTip(RSEDaysPriorEtohResults, "Add page of Etoh results for this number of prior days. Limited to previous 20 results total.")
0
Peter
Telerik team
answered on 02 May 2014, 12:39 PM
Hi Jeffrey,

Thank you for writing.

RadSpinEditor contains inside a Microsoft TextBox control which tooltip should be set independently from the spineditor control tooltip:
ToolTip2.SetToolTip(RSEDaysPriorEtohResults.SpinElement.TextBoxItem.HostedControl, "Add page of Etoh results for this number of prior days. Limited to previous 20 results total.")

I hope this helps.

Regards,
Peter
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jeffrey
Top achievements
Rank 1
answered on 02 May 2014, 12:46 PM
Thanks worked great!
Tags
TextBox
Asked by
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Emanuel Varga
Top achievements
Rank 1
Peter
Telerik team
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
Jeffrey
Top achievements
Rank 1
Share this question
or