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

RadComboBox and RadTooltip OnFocus

1 Answer 82 Views
This is a migrated thread and some comments may be shown as answers.
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: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
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: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:

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

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.
Asked by
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question