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

[Solved] how do I stop model.validation default on combo box

0 Answers 86 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.
william
Top achievements
Rank 1
william asked on 19 Mar 2012, 05:23 PM
HI All,

My Combo's populate no problem and I have set a placeholder of "-- Select --" against all of them. Under certain circumstances it is ok for the user to leave these as the placeholder value. However, when I post my form and enter my controller action the first thing I do is:

if (ModelState.IsValid).......

It fails the above test and when returned back to the client I receive 'A value is Required.' error for all combos that did not have a value selected from it. How do I turn off this behaviour for the Telerik combo's?   (I'm doing validation that I want in my Custom Validation routine)
Tags
ComboBox
Asked by
william
Top achievements
Rank 1
Share this question
or