Captcha not showing radtooltip

4 posts, 1 answers
  1. Fahim
    Fahim avatar
    2 posts
    Member since:
    Jun 2011

    Posted 22 Jun 2011 Link to this post

    captcha control is not showing radtooltip and also focus does not goes the capctha textbox but to the chage image link?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Jun 2011 Link to this post


    I have tried to reproduce the issue locally but no avail. Here is the code which I tried which worked as expected.

    <telerik:RadToolTip ID="Tooltip1" runat="server" TargetControlID="RadCaptcha1"  >ToolTip For Captcha</telerik:RadToolTip>
    <telerik:RadCaptcha  ID="RadCaptcha1" runat="server" ForeColor="Red" ErrorMessage="Enter Correct Data"

  3. DevCraft R3 2016 release webinar banner
  4. Fahim
    Fahim avatar
    2 posts
    Member since:
    Jun 2011

    Posted 22 Jun 2011 Link to this post

    thankyou for your reply

    I copied your code it worked but when I put the showevent property it stopped showing can we set it to show when the text box of captcha is focused and

    how can focus directly go to the text box of captcha instead of change image.


    telerik:RadToolTip ID="Tooltip1" runat="server" Width="150px" Height="70px" ShowEvent="OnFocus" Position="MiddleRight" TargetControlID="RadCaptcha" >Enter the image text into the textbox.</telerik:RadToolTip>

    <telerik:RadCaptcha ID="RadCaptcha" ForeColor="Red" CaptchaImage-EnableCaptchaAudio="true" EnableRefreshImage="true" CaptchaTextBoxLabelCssClass="forget-validator" CaptchaImage-ImageCssClass="forget-validator text-center" CaptchaTextBoxCssClass="forget-validator" runat="server" CaptchaTextBoxLabel="" ErrorMessage="The code you entered is not valid." >









  5. Answer
    Slav avatar
    1351 posts

    Posted 22 Jun 2011 Link to this post

    Hello Fahim,

    RadCaptcha has property ToolTip, which must be set with the text you want to display when your mouse is over the control. Usually, when Refresh Captcha Image Functionality is enabled(EnableRefreshImage property is set to true), the link for generating new code takes focus first. To avoid this you can set a custom field for Captcha code input, using TextBox control.

    The example below shows how to configure RadCaptcha with tooltip and custom input field:
    <asp:TextBox ID="txtRadCaptcha" runat="server" MaxLength="5"></asp:TextBox>
    <telerik:RadCaptcha ID="RadCaptcha1" runat="server" EnableRefreshImage="True" ToolTip="Enter the code!" ErrorMessage="Wrong code!" ValidationGroup="Captcha" ValidatedTextBoxID="txtRadCaptcha">
          <CaptchaImage RenderImageOnly="true" />
    <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="Captcha" />

    If this information doesn't help you find a solution, please send simple, runnable project that
    clearly shows the problem so that we can easily isolate what is causing it.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top