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

Tooltip not working with RadTextBox

3 Answers 159 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 12 Mar 2009, 03:20 PM
I am trying to add a RadToolTip to a RadTextBox, but it is not working (i.e. nothing shows up when I mouseover the radtextbox).  If I swap out my RadTextBox with a regular ASP:Textbox, it works perfectly fine.  Is the RadToolTip not compatible with Telerik input controls??  Here is the code that does not work:

 

<telerik:RadTextBox ID="txtTitle" runat="server" Width="300px" ValidationGroup="vgNewAssign" Skin="Office2007" MaxLength="50">

 

 

</telerik:RadTextBox>

 

 

<asp:RequiredFieldValidator ID="rfvTitle" runat="server" ErrorMessage="Title is required!" Display="None" ControlToValidate="txtTitle" ValidationGroup="vgNewAssign"></asp:RequiredFieldValidator>

 

 

<telerik:RadToolTip ID="ttTitle" Position="MiddleRight" RelativeTo="Element" Skin="Office2007" runat="server" TargetControlID="txtTitle" Text="A brief title for the assignment (required). Limited to 50 characters." Width="300px" AutoCloseDelay="30000" />

 

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Mar 2009, 03:48 PM
Hello Dave,

In this specific case - when using RadInput control, you will need to use the ClientID of the control which is formed by its ID plus "_text" - this is how the control is rendered on the client.

This being said, you should modify your code in the following manner:

<telerik:RadToolTip ID="ttTitle" Position="MiddleRight" RelativeTo="Element" Skin="Office2007" runat="server" TargetControlID="txtTitle_text" Text="A brief title for the assignment (required). Limited to 50 characters." Width="300px" AutoCloseDelay="30000" />   
 
 

You can also find a detailed KB article below:

http://www.telerik.com/support/kb/aspnet-ajax/tooltip/radtooltip-for-radinput.aspx

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dave
Top achievements
Rank 1
answered on 12 Mar 2009, 03:54 PM
Ok, I will adopt that approach, but it seems like a bit of a hack.  You may want to consider innately supporting RadToolTips with Rad input controls so we don't have to do a workaround like this.  Seems like unnecessary pain.  Also, my page is nested in a masterpage, so the client ID is not going to be "txtTitle_text" - it's going to be something uglier than that.
0
Svetlina Anati
Telerik team
answered on 16 Mar 2009, 11:10 AM
Hello Dave,

We will consider improving the integration behavior of RadToolTip and RadInput. However, I cannot provide you with a time estimate for it but it is already logged in our database.


Sincerely yours,
Svetlina
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Dave
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Dave
Top achievements
Rank 1
Share this question
or