Hello,
When I try the validation with a wrong input it some times gives me "Created is invalid". But I do expect the message to be "Invalid Format. Use: mm/dd/yyyy" instead. It appears that Kendo validator does it's own validation even if I returns false. What am I missing here?. it works well in Chrome and Firefox but not in IE
Thanks for your answer and looking forward to it.
Note: Code is written in Razor under MVC
$("#Created").kendoValidator({
rules: {
dateValidation: function (e) {
if (!$(e).val())
return true;
var currentDate = kendo.parseDate($(e).val());
if (!currentDate) {
return false;
}
return true;
}
},
messages: {
dateValidation: "Invalid format. Use: mm/dd/yyyy"
}
});
When I try the validation with a wrong input it some times gives me "Created is invalid". But I do expect the message to be "Invalid Format. Use: mm/dd/yyyy" instead. It appears that Kendo validator does it's own validation even if I returns false. What am I missing here?. it works well in Chrome and Firefox but not in IE
Thanks for your answer and looking forward to it.
Note: Code is written in Razor under MVC
$("#Created").kendoValidator({
rules: {
dateValidation: function (e) {
if (!$(e).val())
return true;
var currentDate = kendo.parseDate($(e).val());
if (!currentDate) {
return false;
}
return true;
}
},
messages: {
dateValidation: "Invalid format. Use: mm/dd/yyyy"
}
});