Tooltup doesn't work with RadTextbox,RadMaskTextbox

9 posts, 0 answers
  1. Manon Girard
    Manon Girard avatar
    19 posts
    Member since:
    Jan 2007

    Posted 01 Jun 2007 Link to this post

    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>

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Jun 2007 Link to this post

    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
  3. janhidding
    janhidding avatar
    10 posts
    Member since:
    Jul 2006

    Posted 19 Jul 2007 Link to this post

    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>

  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Jul 2007 Link to this post

    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
  5. Colin
    Colin avatar
    5 posts
    Member since:
    Dec 2007

    Posted 25 Apr 2008 Link to this post

    I have done as above but still do not see the tool tip. I am using the latest version of RAD Controls
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Apr 2008 Link to this post

    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
  7. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 02 May 2008 Link to this post

    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?
  8. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 05 May 2008 Link to this post

    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.
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 May 2008 Link to this post

    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
Back to Top