This is a migrated thread and some comments may be shown as answers.
Unobtrusive client validation woes
1 Answer 63 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mário
Top achievements
Rank 1
Mário asked on 02 Feb 2011, 01:23 PM
Hi,

I have a problem with unobtrusive client validation with the telerik numeric textboxes. What happens is that the client side validation doesn't seem to work reliably.

I've created a new "C# Telerik MVC 3 Web Application" (using version 2010.3.1318)

Model:

public class MyView
    {
        [Required]
        public int? Integer { get; set; }
    }

Strongly typed View for MyView model

<% using (Html.BeginForm()) {%>
    <%:Html.Telerik().IntegerTextBoxFor(model => model.Integer)%>
 
    <button class="t-button t-state-default" type="submit">Submit</button>
<% }%>

After the page loads i click submit and the IntegerTextBox is correctly highlighted in red because it's required, so far so good.
The problem is that after i type a number in the IntegerTextBox, it's still marked as invalid, and if i tab out and in of the input the background color switches on keyup/keydown. This is not correct and the default TextBox correctly removes the background as i insert a number, telerik's remains in red.

Kind regards,
Mário

1 Answer, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 21 Apr 2011, 03:46 PM
We are also experiencing this exact same issue.  Is this currently being investigated?  Would appreciate acknowledgement from Telerik regarding the issue and if it will be addressed...

Thanks!
Tags
NumericTextBox
Asked by
Mário
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
Share this question
or