Show tooltip progarmmatically from server code

3 posts, 0 answers
  1. Konstantin
    Konstantin avatar
    1 posts
    Member since:
    Mar 2011

    Posted 17 Mar 2011 Link to this post


    I work with javascript google map api and would like to use radtooltips there when i click to some specified map position (marker). I handle click and call web service method where i try to create and show tooltip from code...

            public void ShowToolTip(int locationId)
                RadToolTip radToolTip = new RadToolTip();
                radToolTip.ShowEvent = ToolTipShowEvent.FromCode;
                radToolTip.RelativeTo = ToolTipRelativeDisplay.Mouse;
                radToolTip.Position = ToolTipPosition.Center;
                radToolTip.ShowDelay = 0;
                radToolTip.Animation = ToolTipAnimation.Slide;
                radToolTip.RenderInPageRoot = true;
                radToolTip.Title = "fdfdf";
                radToolTip.Text = "ffff";

    Rad tool tip isn't showed in this case.

    Please tell me is it possible to do something this way, without depending to some control. Because i can't link tooltip to some map position. Marker it's not an control, it doesn't have id, it's just like an icon.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Mar 2011 Link to this post


    Have you added the newly created RadToolTip control to page controls collection or container control (PlaceHolder/Panel etc)?
    Dynamically create Rad ToolTip

    Please take a look at this demo which demonstrates how to Tooltipify specific area.
    Tooltipify Specific Area

  3. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 18 Mar 2011 Link to this post

    Hi Konstantin,

     For loading ASP.NET AJAX controls from a Web Service, we recommend using the XmlHttpPanel control that we provide.

    Kind regards,
    the Telerik team
Back to Top