RadTextBox bug

6 posts, 0 answers
  1. Daron
    Daron avatar
    80 posts
    Member since:
    Dec 2007

    Posted 06 Feb 2008 Link to this post

    Hi,
    There is a bug with RadTextBox when using RequiredFieldValidators.

    I have explicitly set "CausesValidation=false" and it still fires my validator.

    Please let me know once a fix is in place.

    Cheers
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 06 Feb 2008 Link to this post

    Hello Daron,

    Could you elaborate in which scenario do the RadTextBox behave differently compared to the asp.net TextBox control? With the following setup validation is triggered for both of them:

    <telerik:RadTextBox ID="RadTextBox1" runat="server" CausesValidation="false"
    </telerik:RadTextBox> 
    <asp:RequiredFieldValidator ID="Req1" runat="server" ControlToValidate="RadTextBox1" 
        ErrorMessage="*"
    </asp:RequiredFieldValidator> 
    <asp:Button ID="Button1" runat="server" Text="Button" /> 


    <asp:TextBox ID="TextBox1" runat="server" CausesValidation="false"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="Req1" runat="server" ControlToValidate="TextBox1" 
        ErrorMessage="*"
    </asp:RequiredFieldValidator> 
    <asp:Button ID="Button1" runat="server" Text="Button" /> 


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Daron
    Daron avatar
    80 posts
    Member since:
    Dec 2007

    Posted 06 Feb 2008 Link to this post

    It behaves entirely different to the standard textbox!

    I drag a telerik textbox onto a webform and also a standard textbox.
    I drag a requiredfieldvalidator onto the form and set it's controltovalidate property to the telerik textbox.

    When I mouse into and out of the telerik textbox the validator fires (incorrectly).
    When I set the controltovalidate property of the validator to the standard textbox and mouse into and out of that textbox, the validator doesn't fire (as by design). When you click the submit button, the validator fires, correctly.

    Hence, there is a bug in the telerik control.

    <

    asp:ScriptManager ID="ScriptManager1" runat="server" />

    <

    telerik:RadTextBox ID="tt" runat="server"  />

    <

    asp:TextBox id="ms" runat="server" />

    <

    asp:RequiredFieldValidator id="rfv" runat="server" ControlToValidate="tt" ErrorMessage="*" />

    <

    asp:Button ID="btn" runat="server" Text="go" />



  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 07 Feb 2008 Link to this post

    Hi Daron,

    Thank you for elaborating on this one. We were able to reproduce the problem and it will be fixed for the service pack release in about two weeks.

    We have updated your Telerik points for the report.


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Nitin Arora
    Nitin Arora avatar
    1 posts
    Member since:
    Jan 2010

    Posted 22 Jan 2010 Link to this post

    I am using telerik.web.ui version 2009.1.402.35 and I can still repro the bug.
    Has this bug been fixed yet?
  6. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 22 Jan 2010 Link to this post

    Hi Nitin,

    I cannot reproduce the problem with the version you have specified. Can you confirm you can reproduce it with the markup pasted previously in this thread?

    Kind regards,
    Pavel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top