New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Using the TargetControlID Property

The TargetControlID property specifies the ID of the element that should be 'tooltipified'. It can be set declaratively on the page:

ASP.NET
<telerik:RadToolTip RenderMode="Lightweight" ID="RadToolTip1" runat="server" TargetControlID="Button1" IsClientID="true">
</telerik:RadToolTip>

or in the code-behind:

C#
Button button1 = new Button(); 
button1.ID = "Button1"; 
RadToolTip1.TargetControlID = button1.ID;

By default, RadToolTip assumes a server ID. If the ID is client-side, as in the case where an element is pure HTML and not a server control, then the IsClientID property should be set to True.

C#
Button button1 = new Button();
button1.ID = "Button1"; 
RadToolTip1.TargetControlID = button1.ClientID; 
RadToolTip1.IsClientID = true;

See Also

In this article
See Also
Not finding the help you need?
Contact Support