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

Tooltip on sub-items of a RadToolBarSplitButton

3 Answers 125 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Gunnar
Top achievements
Rank 1
Gunnar asked on 27 May 2009, 12:02 PM
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 

 

 

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 May 2009, 12:45 PM
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.
0
Gunnar
Top achievements
Rank 1
answered on 29 May 2009, 10:54 AM
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
0
Helen
Telerik team
answered on 01 Jun 2009, 09:11 AM
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.
Tags
ToolBar
Asked by
Gunnar
Top achievements
Rank 1
Answers by
Peter
Telerik team
Gunnar
Top achievements
Rank 1
Helen
Telerik team
Share this question
or