Hi,
I have a box:
with a required attribute:
and if I clear the box I can still submit the form.
But: I also have a datepicker in the form and if I clear that control and tries to submit, then the validation fires (on both controls).
Regards,
Mattias
I have a box:
@(Html.Kendo().NumericTextBoxFor(m => m.FilterParticipants).Format("n0").Min(1).Decimals(0))
[Required(ErrorMessageResourceName =
"ValidationRequired"
, ErrorMessageResourceType =
typeof
(Resources.Global))]
//[Min(1, ErrorMessageResourceName = "ValidationRequired", ErrorMessageResourceType = typeof(Resources.Global))]
public
int
FilterParticipants {
get
;
set
; }
But: I also have a datepicker in the form and if I clear that control and tries to submit, then the validation fires (on both controls).
Regards,
Mattias