This question is locked. New answers and comments are not allowed.
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:
Strongly typed View for MyView model
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
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