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

RadComboBox and RadTooltip OnFocus

1 Answer 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
dennis
Top achievements
Rank 1
dennis asked on 01 Jun 2010, 05:32 PM

Hi, Why the ShowEvent="OnFocus" doesnt works with tha radcombobox? The others modes works normally.

 

 

                    <telerik:RadComboBox ID="RadComboBoxCurrency" runat="server" 
                        Skin="Outlook" Width="184px" > 
                    </telerik:RadComboBox> 
                    <telerik:RadToolTip ID="RadToolTipCurrency" runat="server" TargetControlID="RadComboBoxCurrency"   
                     Position="MiddleRight" RelativeTo="Element" ShowDelay="100" Text="oooo" ShowEvent="OnFocus" 
                     Skin="Windows7" AnimationDuration="300" Animation="Resize" HideDelay="200" /> 

I'm doing something wrong?

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 04 Jun 2010, 08:38 AM
Hi dennis,

The behavior you describe comes from the fact that the RadComboBox as all RadControls is complex HTML and it is formed by different standard HTML elements. The combo has its focus event when actually the input is focused and thus you should specify the input for the RadToolTip to provide the direct needed to be focused element.

This being said I can suggest to use one of the following solutions:

1) Set the input as shown below:

<telerik:RadComboBox ID="RadComboBoxCurrency" runat="server" Skin="Outlook" Width="184px"
</telerik:RadComboBox
<telerik:RadToolTip ID="RadToolTipCurrency" runat="server" TargetControlID="RadComboBoxCurrency_Input"
    IsClientID="true" Position="MiddleRight" RelativeTo="Element" ShowDelay="100"
    ShowEvent="OnFocus" Text="****" Skin="Windows7" AnimationDuration="300" Animation="Resize"
    HideDelay="200" />



Note, that the tooltip will search for a server control with such an ID and thus you should explicitly set isClientID to true.

2) You can handle the OnClientFocus event of the RadComboBox (which internally "knows" that this is actually fired by the input) and use the RadToolTipManager's client API to show the tooltip as explained below:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx

I hope that my reply is detailed enough and helpful, let me know how it goes.



Greetings,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
dennis
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or