On asp:Textbox the RadTooltip is correct but not on RadTextbox and RadMaskTextbox
I use :
RadInput.Net2.dll version 2.0.2.0
Prometheus version 2007.1.521.0.
<form...>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>RadTextBox :<radI:RadTextBox ID="RadTextBox1" runat="server"/></div>
<div>TextBox :<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
<div>RadNumericTextBox :<radI:RadNumericTextBox ID="RadNumericTextBox1" runat="server">
</radI:RadNumericTextBox> </div>
<asp:Button ID="ButtonNext" runat="server" Text="Suivant" />
<telerik:RadToolTip ID="RadToolTip2" runat="server"
TargetControlID="TextBox1"
Sticky="true"
RelativeTo="Element"
Position="BottomCenter">
<asp:Label ID="Label1" runat="server" Text="My Tooltip Text"></asp:Label>
</telerik:RadToolTip>
8 Answers, 1 is accepted
In this specific case - when using RadInput, you will need to use the ClientID of the textbox / numeric textbox plus "_Text" - this is how the RadNumericTextBox and RadTextBox are rendered on the client.
e.g.:
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <div> |
| RadTextBox :<radI:RadTextBox ID="RadTextBox1" runat="server" /></div> |
| <div> |
| RadNumericTextBox :<radI:RadNumericTextBox ID="RadNumericTextBox1" runat="server"> |
| </radI:RadNumericTextBox> |
| </div> |
| <asp:Button ID="ButtonNext" runat="server" Text="Suivant" /> |
| <telerik:RadToolTip |
| ID="RadToolTip1" |
| runat="server" |
| TargetControlID="RadTextBox1_Text" |
| IsClientID="true" |
| Sticky="true" |
| RelativeTo="Element" |
| Position="BottomCenter"> |
| <asp:Label |
| ID="Label2" |
| runat="server" |
| Text="My Tooltip Text"> |
| </asp:Label> |
| </telerik:RadToolTip> |
| <telerik:RadToolTip |
| ID="RadToolTip3" |
| runat="server" |
| Position="BottomCenter" |
| RelativeTo="Element" |
| Sticky="true" |
| TargetControlID="RadNumericTextBox1_Text" |
| IsClientID="true" |
| > |
| <asp:Label |
| ID="Label3" |
| runat="server" |
| Text="My Tooltip Text1"> |
| </asp:Label> |
| </telerik:RadToolTip> |
| </form> |
We will improve on this in a future version of the controls, however for now, you will need to use the approach above.
Sincerely yours,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Hi,
The solution mentioned above works fine with RadTextBox but it doesn't work with a RadMaskedTexBox. See example code below. How can i show a tooltip for a RadMaskedTextBox?
Regards,
Jan
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Animation="FlyIn"
AutoCloseDelay="4000" Position="TopRight" ShowDelay="200" Skin="Web20" Style="position: relative">
<TargetControls>
<telerik:ToolTipTargetControl IsClientID="True" TargetControlID="RadTextBox1_Text" />
<telerik:ToolTipTargetControl IsClientID="True" TargetControlID="RadMaskedTextBox1_Text" />
</TargetControls>
</telerik:RadToolTipManager>
<radI:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Style="position: relative"
ToolTip="Tooltip for the masked textbox">
</radI:RadMaskedTextBox>
<radI:RadTextBox ID="RadTextBox1" runat="server" Style="position: relative"
ToolTip="Tooltip for the textbox">
</radI:RadTextBox>
</form>
Please make sure that you are using the latest version of RadInput - v2.0.2 - you should not experience problems with it.
All the best,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I just check the code and it works fine. Please open a new support ticket and send us a small sample project where this problem can be reproduced. We will check it and do our best to help.
All the best,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am sorry to hear about your frustration, but please note that we do not guarantee a reply on time in the forums which are a community resort. If you have sent us a support ticket on this subject, we would have answered it right away.
As for the problem itself, indeed, this is the reason why the example was not working with masterpage. I would like to stress out however, that this is expected behavior which is not related to our control - when masterpage is used, the IDs of the controls are changed.
Kind regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center