This is a migrated thread and some comments may be shown as answers.

Tooltip control inside of an usercontrol

3 Answers 106 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Sunghwan
Top achievements
Rank 1
Sunghwan asked on 03 Feb 2009, 01:52 AM
Is it possible to use Tooltip control in an usercontrol? If so, can you please post a sample?
Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 03 Feb 2009, 07:52 AM
Hello Sunghwan,

You need to place a RadToolTip in the usercontrol and set its TargetControlID to the ID of the control you need to tooltipify as shown below:
ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:TextBox ID="TextBox1" Text="MessageBox" runat="server"></asp:TextBox>   
     
<telerik:RadToolTip ID="RadToolTip1" TargetControlID="TextBox1" Text="Displays message here!" runat="server"
</telerik:RadToolTip>  

Thanks
Princy.
0
NALDRO
Top achievements
Rank 1
answered on 23 Mar 2009, 09:45 AM
yes it works pretty well, unfortunately the "HideEvent" attribute under RadToolTip is not as useful as it should be. is there another way to manually close a radtooltip in a UserControl page?
0
NALDRO
Top achievements
Rank 1
answered on 23 Mar 2009, 10:08 AM
yes there is a way, just exclude the  attribute sticky="true" from any of your tags in your UserControl, otherwise its all mess up!
Tags
ToolTip
Asked by
Sunghwan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
NALDRO
Top achievements
Rank 1
Share this question
or