Hi,
Using RadToolTip v2008.1.515.20, I'm trying to add a ToolTipTargetControl via Javascript in the RadToolTipManager object to achieve the same result as this:
I tried adapting a version from this old post but still gets errors. Here's the function I use :
I try to attach the tooltip to an image from the onload event like this :
and get the following error that seems to be from the RadToolTip javascript:
Thanks a lot,
Dominic.
Using RadToolTip v2008.1.515.20, I'm trying to add a ToolTipTargetControl via Javascript in the RadToolTipManager object to achieve the same result as this:
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomCenter" |
Animation="Fade" Width="550"> |
<WebServiceSettings Method="GetHelpTooltip" Path="services/RadControlsHelper.asmx" /> |
<TargetControls> |
<telerik:ToolTipTargetControl TargetControlID="imgHelp" IsClientID="true" Value="2" /> |
</TargetControls> |
</telerik:RadToolTipManager> |
I tried adapting a version from this old post but still gets errors. Here's the function I use :
function AddTarget(ctl) |
{ |
// Get the tooltipmanager |
var tooltip = $find("<%= RadToolTipManager1.ClientID %>"); |
var strID = ctl.id; |
// I think the first entry is the id of the page DOM element |
// and the second is an optional server ClientID. |
tooltip._targetControls.push([strID, strID]); |
// registers mouseover events, etc. |
tooltip._initializeWebServiceToolTip($get(strID), strID); |
} |
I try to attach the tooltip to an image from the onload event like this :
<img id="imgHelp" src="images/help.gif" alt="" class="help" onload="AddTarget(this);"> |
and get the following error that seems to be from the RadToolTip javascript:
_2a.add_beforeShow is not a functionDo you know what the problem could be? Also, I can't seem to find the Client-Side API for the RadToolTipManager object, is it available ?
https://localhost/ScriptResource.axd?d=FDOeA3HRofvWSv3eNAm2OQZnrwTCwpmI81gKOkyPTEpPeMYYWS1Cc1MXh6rlSLlBfU_kKYfySEJehs7VWhbzeg2&t=633463791500000000
Line 162 : _2a.add_beforeShow(Function.createDelegate(this,function(_2b,_2c){
Thanks a lot,
Dominic.