This is a migrated thread and some comments may be shown as answers.
RadTextBox bug
5 Answers 163 Views
This is a migrated thread and some comments may be shown as answers.
Daron
Top achievements
Rank 1
Daron asked on 06 Feb 2008, 10:17 AM
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

5 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 06 Feb 2008, 11:59 AM
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
0
Daron
Top achievements
Rank 1
answered on 06 Feb 2008, 06:31 PM
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" />



0
Giuseppe
Telerik team
answered on 07 Feb 2008, 04:22 PM
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
0
Nitin Arora
Top achievements
Rank 1
answered on 22 Jan 2010, 10:53 AM
I am using telerik.web.ui version 2009.1.402.35 and I can still repro the bug.
Has this bug been fixed yet?
0
Pavel
Telerik team
answered on 22 Jan 2010, 02:53 PM
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.
Tags
Input
Asked by
Daron
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Daron
Top achievements
Rank 1
Nitin Arora
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or