Tooltip for textbox portion of radspineditor?

8 posts, 0 answers
  1. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 25 Feb 2011 Link to this post

    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
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 28 Feb 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 02 Mar 2011 Link to this post

    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!
  5. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 03 Mar 2011 Link to this post

    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
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 09 Mar 2011 Link to this post

    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!
  7. Jeffrey
    Jeffrey avatar
    14 posts
    Member since:
    Mar 2014

    Posted 02 May 2014 in reply to Peter Link to this post

    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.")
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 02 May 2014 Link to this post

    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.
     
  9. Jeffrey
    Jeffrey avatar
    14 posts
    Member since:
    Mar 2014

    Posted 02 May 2014 in reply to Peter Link to this post

    Thanks worked great!
Back to Top
UI for WinForms is Visual Studio 2017 Ready