Hello Marc,
I have inspected the validation logic of the RequiredFieldValidator and the value of the input is actually trimmed to "0:0" which is why the client-side validation was not triggered. If you set the InitialValue to 0:0, then the client-side validation will work.
That is because the ValidatorGetValue function of the MS AJAX framework is overwritten in order to take into consideration the RadMaskedTextBox:
if (typeof (window.ValidatorGetValue) == "function" && typeof (window.ValidatorGetValue_Original) == "undefined") {
window.ValidatorGetValue_Original = window.ValidatorGetValue;
window.ValidatorGetValue = function (b) {
var a = document.getElementById(b);
if (typeof (a.RadInputValidationValue) == "string") {
if (a.RadInputLastSetTextBoxValue == a.value) {
return a.RadInputValidationValue;
} else {
return a.value;
}
} else {
return window.ValidatorGetValue_Original(b);
}
};
}
Let me know how that works for you.
Regards,
Peter Milchev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.