Dynamically set text of Radtooltipmanager

4 posts, 1 answers
  1. Arsalan
    Arsalan avatar
    17 posts
    Member since:
    Sep 2013

    Posted 13 Jan 2014 Link to this post

    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.
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 13 Jan 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Arsalan
    Arsalan avatar
    17 posts
    Member since:
    Sep 2013

    Posted 15 Jan 2014 Link to this post

    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 
  5. Arsalan
    Arsalan avatar
    17 posts
    Member since:
    Sep 2013

    Posted 15 Jan 2014 Link to this post

    Thanks man Problem solved
Back to Top