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

Dynamically set text of Radtooltipmanager

3 Answers 101 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Arsalan
Top achievements
Rank 1
Arsalan asked on 13 Jan 2014, 10:12 AM
hey everyone 

this is my .aspx code

<asp:LinkButton ID="link" runat="server"> 
<telerik:RadToolTipManager ID="toottip" runat="server" AutoTooltipify="true" Width="200px" RelativeTo="Element"
 HideEvent="LeaveTargetAndToolTip" WebServiceSettings-UseHttpGet="false" Animation="Fade"
  EnableTheming="true" Title="Documents" ShowEvent="OnMouseOver">
<WebServiceSettings Method="GetToolTipData"  Path="InvestmentDropDownWebService.asmx" UseHttpGet="true"/>
<TargetControls>
    <telerik:ToolTipTargetControl  TargetControlID="link"></telerik:ToolTipTargetControl>
</TargetControls>
</telerik:RadToolTipManager>
</asp:LinkButton>  

And this code behind
protected void Page_Load(object sender, EventArgs e)
    {
    DataTable dt = getName();
      link.Text = dt.Rows[0][Name].ToString();
    }
i am trying this code but problem is on mouseover webservice not call. if i set link button Text in .aspx page so its working fine..
how to solve it. if the text is from codebehind.

3 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 13 Jan 2014, 05:15 PM
Hi Arsalan,

Have you downloaded our online demos and have you examined the way a webservice is built there? You can see it in this demo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/webservice/defaultcs.aspx.

Nevertheless, I am attaching here a simple examplethat shows how to do this. Note how the GET verb is not used and that Autotooltipify will not have effect when targets are declared.

Regards,
Marin Bratanov
Telerik
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 the blog feed now.
0
Arsalan
Top achievements
Rank 1
answered on 15 Jan 2014, 06:03 AM
hey Marin
Error in your code how to resloved and error is
"rad tool tip manager response error exception=an attempt was made to call the method GetToolTipData using a post request, which is not allowed " 
please help me

Thanks in Advance 
0
Arsalan
Top achievements
Rank 1
answered on 15 Jan 2014, 06:27 AM
Thanks man Problem solved
Tags
ToolTip
Asked by
Arsalan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Arsalan
Top achievements
Rank 1
Share this question
or