ToolTip Overview

Both RadTooltip and RadTooltipManager can display rich content (including user controls and other ASP.NET controls), as well as AJAX-generated content. RadToolTip is meant to "tooltipify" a single element while RadToolTipManger should be used in scenarios where many elements would require a tooltip. For more on RadTooltipManager please examine the Tooltip Manager example.

The two most important RadToolTip properties are:
- TargetControlID - the ID of the control for which the tooltip should appear on the client
- Text - the text to appear as tooltip

Content can be added to RadTooltip can be set to the tooltip in three ways. Here is the precedence in which RadToolTip follows in order to determine what content to display

1. Content from the controls collection has the highest precedence. Whatever is specifiied between the opening and closing tags of the tooltip or set in Controls collections from the codebehind.

<telerik:RadToolTip runat="server" ID="RadToolTip1" TargetControlID="link1" Width="250px" Height="300px" >
Rich content:
<asp:Button ID="btnA" runat="server" Text="Button in a ToolTip"/>
</telerik:RadToolTip>

this.RadToolTip1.Controls.Add(new HtmlGenericControl("HR"));

2. Setting text with the "Text" property

<telerik:RadToolTip runat="server" ID="RadToolTip1" TargetControlID="link1" Text="This link has a RadToolTip" Width="250px" Height="300px" >

3. Reading the element's 'title' attribute and displaying its content