Hi bemara57,
You cannot put the content you wish to show in the RadToolTips the manager creates between the opening and closing tags of the RadToolTipManager as usually, different target elements, have different titles. You can create a UserControl with that content, and use the AjaxUpdate event of the manager to load the control inside the tooltip that is about to open. However, in this case, I believe it would be easier, to use a single RadToolTip for all target elements, and set its TargetControlId dynamically.
For example:
<body> |
<form id="form1" runat="server"> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
|
<asp:Label ID="Label1" runat="server" Text="Target 1" onmouseover="ShowToolTip(this);"></asp:Label> |
<asp:Label ID="Label2" runat="server" Text="Target 2" onmouseover="ShowToolTip(this);"></asp:Label> |
<asp:Label ID="Label3" runat="server" Text="Target 3" onmouseover="ShowToolTip(this);"></asp:Label> |
<asp:Label ID="Label4" runat="server" Text="Target 4" onmouseover="ShowToolTip(this);"></asp:Label> |
<asp:Label ID="Label5" runat="server" Text="Target 5" onmouseover="ShowToolTip(this);"></asp:Label> |
|
<telerik:RadToolTip ID="RadToolTip1" runat="server" RelativeTo="Element" IsClientID="true"> |
Content |
</telerik:RadToolTip> |
</form> |
<script type="text/javascript"> |
function ShowToolTip(element) |
{ |
var tooltip = $find('<%= RadToolTip1.ClientID %>'); |
|
setTimeout(function(){ |
tooltip.set_targetControlID(element.id); |
tooltip.show(); |
}, 100); |
} |
</script> |
</body> |
All the best,
Tsvetie
the Telerik team