OnAjaxUpdate Inside UserControl Inside Ajax...

2 posts, 0 answers
  1. Doug
    Doug avatar
    22 posts
    Member since:
    Apr 2009

    Posted 03 Apr 2013 Link to this post

    Greetings - I host user control inside an update panel, this user control then contains sub user controls, I want to create something like a drop down load on demand tool tip using the following code.  It doesn't call the instances ajax update but i think the parent's.  How do I get this to work?


    <
    asp:UpdatePanel runat="server" UpdateMode="Conditional">

    <ContentTemplate>

    <telerik:RadToolTipManager runat="server" ID="MyRadToolTipManager1" Position="Center" RelativeTo="Element" Animation="Resize"

    HideEvent="ManualClose" ShowEvent="OnMouseOver" ShowCallout="true"

    RenderInPageRoot ="true"

    Skin="Default" OnAjaxUpdate="OnMyRadToolTipManagerAjaxUpdate1" AutoTooltipify="false" >

    <TargetControls>

    <telerik:ToolTipTargetControl TargetControlID="MyLabel" Value="MyLabel" />

    </TargetControls>

    </telerik:RadToolTipManager>

    <asp:Label runat="server" ID="MyLabel" Text="Content" />

    </ContentTemplate>

    </asp:UpdatePanel>

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 05 Apr 2013 Link to this post

    Hello Doug,

    This markup calls the expected handler on my end.

    Note that the OnAjaxUpdate handler will be called with each postback from the page, regardless of its origin (be it in the tooltip or not) to recreate the controls and this may be causing the confusion on you end.

    Also note that only one RadToolTip can be visible on the page in any given moment. I am not sure what "dropdown load-on-demand tooltip" is, but if it includes nested tooltips you will not be able to have them both shown in the same time, showing the second will hide the first which will hide the second's target and thus the second will hide as well.


    Regards,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top