How to disable tool tips on RadItems when the RadItem Text is visible

2 posts, 0 answers
  1. Tom
    Tom avatar
    1 posts
    Member since:
    Feb 2016

    Posted 05 Aug 2016 Link to this post

    Although I want to have tool tips available when the text of the buttons (RadItems) on my ribbon bar (RadRibbonBarGroup) are not visible because the ribbon bar has been resized down to a point where the text is hidden, I do not want these tool tips to be available when the text is visible as they are then redundant and somewhat annoying to the users.

    Is there an event triggered when the button determines to hide/show the text while resizing?

    Is there a property I can use to determine whether the button text is visible?

    Is there already logic built into the button to tie this text-visible to the availability of the tool tip>?

    Would it be possible for me to inherit from the RadItem control and override the tooltip property or would that be pointless because the code to display the tooltip uses the internal variable and not the property getter to retrieve the tooltip text to display.

    Thank you in advance for any help you can offer.




  2. Hristo
    Hristo avatar
    1508 posts

    Posted 08 Aug 2016 Link to this post

    Hi Tom,

    Thank you for writing.

    You can subscribe the ribbon bar control to the ToolTipTextNeeded event and in the handler depending on the sender set the ToolTipText to an empty string. I am not exactly sure in what circumstances the text is not visible and how you are resizing the ribbon. If possible please send me a sample demonstrating the behavior on your end.

    As to your other question, creating the custom RadButtonElements and overriding their ToolTipText is possible. Please note, however, that if you add them in the designer they will have their default type.

    Looking forward to hearing from you.

    Hristo Merdjanov
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Back to Top