RadComboBox and RadTooltip OnFocus

2 posts, 0 answers
  1. dennis
    dennis avatar
    39 posts
    Member since:
    Jun 2008

    Posted 01 Jun 2010 Link to this post

    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?

     

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 04 Jun 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top