I have a Telerik RadToolTipManager in which I call a webservice method like this:
<asp:LinkButton ID="link" runat="server" >
<%# DataBinder.Eval(Container.DataItem, "Name")%>
</asp:LinkButton>
<telerik:RadToolTipManager ID= "tooltip" runat="server" width="400px"
RelativeTo="Element" HideEvent="LeaveTargetAndToolTip"
Animation="Slide" EnableTheming="true" ShowEvent="OnMouseOver">
<WebServiceSettings Method="GetToolTipData" Path="DropdownWebService.asmx"
UseHttpGet="true" />
<TargetControls>
<telerik:ToolTipTargetControl TargetControlID="link">
</telerik:ToolTipTargetControl>
</TargetControls>
</telerik:RadToolTipManager>
and in my web service code behind I have this:
[WebMethod(EnableSession = true)]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public string GetToolTipData(object context)
{
IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
string tooltipValue = ((string)contextDictionary["Value"]);
string targetID = ((string)contextDictionary["TargetControlID"]);
string str = "";
return tooltipValue ;
}
It works fine and it shows the tooltip but in the variable tooltipValue I am only getting an empty string. I want the value of tooltip, is there any other way around?