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

[Solved] Tooltup doesn't work with RadTextbox,RadMaskTextbox

8 Answers 400 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Manon Girard
Top achievements
Rank 1
Manon Girard asked on 01 Jun 2007, 05:13 PM

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

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Jun 2007, 01:13 PM
Hello Manon,

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
0
janhidding
Top achievements
Rank 1
answered on 19 Jul 2007, 12:44 PM

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>

0
Georgi Tunev
Telerik team
answered on 24 Jul 2007, 02:25 PM
Hi Jan,

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
0
Colin
Top achievements
Rank 1
answered on 25 Apr 2008, 02:18 PM
I have done as above but still do not see the tool tip. I am using the latest version of RAD Controls
0
Georgi Tunev
Telerik team
answered on 29 Apr 2008, 08:00 AM
Hi Colin,

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
0
Amanda
Top achievements
Rank 1
answered on 02 May 2008, 09:11 PM
Your workaround works for a page which does not use a masterpage, but as soon as I try to use a masterpage it no longer works.  This is because the controls get renamed on the client and specifying "TargetControl='ControlName_Text' IsClient='true'" is no longer valid - the actual control name of the textbox on the client is more like "ctl001_contentplaceholdername_ControlName_Text".  Do you have any further suggestions for me?
0
Amanda
Top achievements
Rank 1
answered on 05 May 2008, 03:30 PM
Well, I have arrived at a workaround; I had already created a user control around my tool tips, so I added additional logic to get a reference to the targeted control, and check its type - if it's one of these Rad controls, it substitutes the targeted control's ClientID + "_Text", and sets IsClientID = true.  This is working, although I am a little frustrated that *I* am the one who just spent four hours making two controls from the same vendor work together.  I would expect this if I were using controls from two different vendors, but not two controls that are part of the same suite of controls and sold as a set.
0
Georgi Tunev
Telerik team
answered on 07 May 2008, 01:41 PM
Hello Amanda,

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
Tags
ToolTip
Asked by
Manon Girard
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
janhidding
Top achievements
Rank 1
Colin
Top achievements
Rank 1
Amanda
Top achievements
Rank 1
Share this question
or