Trigger Ajaxupdate from javascript

3 posts, 0 answers
  1. Mooka
    Mooka avatar
    16 posts
    Member since:
    Aug 2006

    Posted 07 Jun 2011 Link to this post


    Hello all,

    I'm interested in displaying a dynamically loaded user control inside a RadToolTipManager using the AjaxUpdate method from javascript when using the onRowDblClick event of the RadGrid.

    I've tried calling the following, which does open the tooltip, but does not call the ajaxupdate:

     function editRole(sender, eventArgs) {


                    var tooltip = $find('<%= ttAddVariable.ClientID %>');

                    setTimeout(function () {
                        tooltip.set_targetControlID(sender);
                        tooltip.show();
                    }, 100);  
                }
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 09 Jun 2011 Link to this post

    Hi Mooka,

    You need to show the tooltip that corresponds to the appropriate row, not call the manager's show command. Doing so will automatically trigger the AjaxUpdate event. How to do that is exaplained in the following demo on the ToolTIpManager's client-side API: http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx. More information on how to pass the needed value to the user control is available in the following remo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx.

    For your convenience I created and attached a simple page demonstrating this functionality. Here is a video with the expected behavior: http://screencast.com/t/Xbup6VYNpkZ.

    I hope my reply was helpful.



    All the best,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mooka
    Mooka avatar
    16 posts
    Member since:
    Aug 2006

    Posted 13 Jun 2011 Link to this post

    This worked great thank you!
Back to Top