RadButton and Tooltips

5 posts, 0 answers
  1. Brummi
    Brummi avatar
    4 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2007 Link to this post

    Greetings Telerik,

    I just tried to add a tooltip-text to a RadButton (image only), but i don't see any property for this. I assumed there's this possibility since there is a property named "ShowItemToolTips" (which is set to yes).

    Is this a bug or doesn't it exist?

    Many thanks,
    Daniel
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 25 Jun 2007 Link to this post

    Hi Brummi,
    In RadButton you have a property named  RadButtonElement ButtonElement. Through this property you access the internal element that is used to render the button, and it is a descendant of RadItem. Every RadItem has the property ToolTipText, so basically you can set it like:

    MyButton.ButtonElement.ToolTipText = "MyButton"

    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brummi
    Brummi avatar
    4 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2007 Link to this post

    Hi Dimitar,

    Aah, that's well "hidden" :) Thank you very mutch for your assistance!

    Regards,
    Daniel
  5. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 26 Feb 2013 Link to this post

    Hi,
    I use Q3 2012 and i set auto tool tip = true and toot tip text and show item tool tip but still not working.
    Regards,
    mohammed
  6. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 28 Feb 2013 Link to this post

    Hi Mohammed,

    Thank you for writing.

    The behavior is still the same - just set the ToolTipText property of the ButtonElement, and when you hover the button, the tool tip will be shown:
    radButton1.ButtonElement.ToolTipText = "hello";

    I hope this helps.
     

    Kind regards,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

    Interested, but can’t attend? Register anyway and we’ll send you the recording.
Back to Top
UI for WinForms is Visual Studio 2017 Ready