Hello,
the problem is validator is really slow(beacuse i have about 400 radio inputs - 130 radio button groups). Here is the code of the custom rule of the validator:
The best solution would be that validation code breaks when the first validation error is found. But i don't know how to achieve this.
Maybe any other suggestions?
Thanks
the problem is validator is really slow(beacuse i have about 400 radio inputs - 130 radio button groups). Here is the code of the custom rule of the validator:
$(
"#testWizard"
).kendoValidator({
rules: {
radio:
function
(input) {
//if type radio and required attribute on the input
if
(input.is(
"[type=radio]"
) && input.attr(
"required"
)) {
//check if any radio button is selected from the radio button group
return
$(
"#testWizard"
).find(
"[name="
+ input.attr(
"name"
) +
"]"
).is(
":checked"
);
}
return
true
;
}
},
messages: {
radio:
"Choose one of the items"
}
});
The best solution would be that validation code breaks when the first validation error is found. But i don't know how to achieve this.
Maybe any other suggestions?
Thanks