Fire OnAjaxUpdate from client side

2 posts, 0 answers
  1. Alex Lawson
    Alex Lawson avatar
    43 posts
    Member since:
    May 2008

    Posted 09 Aug 2010 Link to this post

    HI,

    I am writing an interface whichh uses AJAX and nonAJAX enabled controls, I am having problems getting a nonajaxed control to implement its tooltips via the Telerik ToolTipManager.  The control is a flowchart called go.net, I have got it to fire a javascript event when hovering over a node but am stuck there.

    The tooltipmanager is setup to load a seperate ascx page as per your demo's, the onajaxupdate looks something like:

    protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
    {
        // Get control references
     
        Control toolTip = LoadControl("~/SharedToolTip.ascx");
        Label titleLabel = (Label)toolTip.FindControl("lblTitle");
        Label displayLabel = (Label)toolTip.FindControl("lblFullText");
     
        ...
    }

    Is it possible to initiate the onajxupdate event of the tooltipmanager from javascript?  I am using the 'args' parameter to pass a control array through, so ideally would need that functioanlity to.

    Thanks.

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts
    Member since:
    Sep 2012

    Posted 12 Aug 2010 Link to this post

    Hi Alex Lawson,

     To fire the OnAjaxUpdate event from the client, you should show the tooltip by using the method show(). It is possible to also create the whole tooltip on the client or simply reference it and call show(). Sample demo demonstrating this functionality is available below:

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

    Kind regards,
    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

Back to Top