This is a migrated thread and some comments may be shown as answers.

Show tooltip progarmmatically from server code

2 Answers 79 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 17 Mar 2011, 11:07 AM
Hello!

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...

        [WebMethod]
        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";
            radToolTip.Show();
        }

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 asp.net control, it doesn't have id, it's just like an icon.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Mar 2011, 09:00 AM
Hello,


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


Thanks,
Shinu.
0
Svetlina Anati
Telerik team
answered on 18 Mar 2011, 01:04 PM
Hi Konstantin,

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

Kind regards,
Svetlina
the Telerik team
Tags
ToolTip
Asked by
Konstantin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or