This is a migrated thread and some comments may be shown as answers.

[Solved] Validation not working as expected

1 Answer 58 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 30 Jul 2011, 04:17 PM
Hi,

I am using the Telerik datepicker control on an MVC3 projcet with Razor. We are using unobtrusive clientside validation framework.

The clientside validation will work to validate blank fields with a [required] attrinute correctly, but it doesn't seem to validate the format of the input correctly, so for example I could enter the text 'abc' into the datepicker control and then the form would be considered valid.

I noticed the samples (http://demos.telerik.com/aspnet-mvc/datepicker/clientvalidation) work correctly using the MicrosoftMvcValidation.js script library, but I wondered if anyone has noticed this problem with the unobtrusive validation scripts for MVC 3?

Cheers,
Rob

1 Answer, 1 is accepted

Sort by
0
Tyler
Top achievements
Rank 1
answered on 01 May 2012, 09:27 PM
I've noticed the same thing. I also noticed that on the demo site, if you put in junk text, the form will still submit. Is that intended behavior?
Tags
Date/Time Pickers
Asked by
Robert
Top achievements
Rank 1
Answers by
Tyler
Top achievements
Rank 1
Share this question
or