Tooltip on sub-items of a RadToolBarSplitButton

4 posts, 0 answers
  1. Gunnar
    Gunnar avatar
    17 posts
    Member since:
    Jun 2008

    Posted 27 May 2009 Link to this post

    Hi!

    Is it possible to set tooltips on sub-items of a RadToolBarSplitButton?

    The following pseudo-code doesn't seem to work, there's no tooltip on the added button:

    var btn = new Telerik.Web.UI.RadToolBarButton();
    btn.set_value(navItem.ID);
    btn.set_text(' My Text');
    btn.set_toolTip('My Tooltip');
    splitButton.get_buttons().add(btn);

    Regards 

     

     

     

     

     

     

     

     

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 May 2009 Link to this post

    Hello Gunnar,

    Normally, you should be able to use the ToolTip property of the toolbar button. For example:
     <telerik:RadToolBar ID="RadToolBar1" Runat="server">  
            <Items> 
                <telerik:RadToolBarButton runat="server" Text="Button 0">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarSplitButton runat="server" Text="SplitButton 0">  
                    <Buttons> 
                        <telerik:RadToolBarButton runat="server" ToolTip="button 1 tooltip" Text="Child Button 1">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton runat="server" ToolTip="button 2 tooltip"  Text="Child Button 2">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton runat="server" ToolTip="button 3 tooltip"  Text="Child Button 3">  
                        </telerik:RadToolBarButton> 
                    </Buttons> 
                </telerik:RadToolBarSplitButton> 
            </Items> 
    </telerik:RadToolBar> 

    However, we discovered a problem with RadToolbar in this case - the split button will always display the tooltip for the first button, no matter which button is actually selected. I have logged this issue and we will try to resolve it as soon as possible.


    Kind regards,
    Peter
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gunnar
    Gunnar avatar
    17 posts
    Member since:
    Jun 2008

    Posted 29 May 2009 Link to this post

    Thanks for the answer.

    This raises another question;
    Is it possible to display tooltip when hovering buttons of a RadToolBarSplitButton?
    When clicking the RadToolBarSplitButton a dropdown is displayed and I want to show a tooltips for each of the items that I hover in the dropdown.

    Hope you understand my needs.

    Regards
  5. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 01 Jun 2009 Link to this post

    Hello Gunnar,

    Currently it is possible - please see the attached screenshot for more details. The only problem is when the drop down is closed, the displayed tooltip is always the tooltip of the first button.


    Regards,
    Helen
    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.
Back to Top