I have the following rules
the 1st does work using unobtrusive, client side validation, the second does not
any ideas why?
RuleFor(x => x.
LessThanOrEqualTo
and GreaterThanOrEqualTo
do not support clientside validation out of the box.
However, InclusiveBetween
is supported. So you could use InclusiveBetween
.
Example
RuleFor(x => x.StartDate)
.InclusiveBetween(x.AbsoluteStartDate, x.AbsoluteEndDate)
See the documentation for mor information about supported clientside methods.