Hi i needed some help as my kendo picker not able to clear the error message when the date format is correct
I want the messages to be remove or hide when it is correct but somehow i not able to
$(function () {
var viewModel = kendo.observable({
selectedDate: new Date(),
});
kendo.bind($("#change-date-collection1"), viewModel)
$("#change-date-collection1").kendoValidator({
rules: {
// Implement your custom date validation.
dateValidation: function (input, params) {
if (input.is("[name='date']") && input.val() != "") {
var date = kendo.parseDate(input.val(), "dd/MM/yyyy");
if (date) {
return true;
}
return false;
}
return true;
}
},
messages: { //custom rules messages
// Return the message text.
dateValidation: "Not a valid date in dd/MM/YYYY format!",
}
});
})I want the messages to be remove or hide when it is correct but somehow i not able to
