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

[Solved] DropDownList validation fails on "Please Select" prompt?

1 Answer 22 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gene
Top achievements
Rank 1
Gene asked on 26 Jul 2012, 02:32 AM
I have no validation data annotations on my view model for the field I am creating a DropDownListFor control, yet validation fails when I reset my DropDownList to the default "Please Select" SelectListItem I use for a prompt.  The value is string.Empty.  I've searched high and low and don't see any answer or reason for this.  Is there ANY way to prohibit validation?  Why in the world is the controls being validated anyhow, it's a DropDownList for goodness sake.  Is there a way to disable validation for the control client-side? This is silly.

1 Answer, 1 is accepted

Sort by
0
Gene
Top achievements
Rank 1
answered on 26 Jul 2012, 01:36 PM
Silly me...tried to select an item that was not in the select list using javascript and received this error - you're off the hook this time Telerik ;)
Tags
ComboBox
Asked by
Gene
Top achievements
Rank 1
Answers by
Gene
Top achievements
Rank 1
Share this question
or