At first, Thanks for kendo. it is used conveniently. but there are some ways I can't understand or I think it's not elegant.
1. $("#temp").kendoValidator().data("kendoValidator").validate() doesn't validate rules which I specify.
I add my rules in Validation to validate password and confirm password. when element loses focus, fantastic!!!! It does work. I really happily continue coding.
when I submit data with AJAX. Oh no.. break down because I write different password in password input and confirm Password input. I realize that validate() don't use rules. I don't know why? The only reason I can find is rules need know the real <input> widget.
2. form submit.
I don't find some solutions. So I return to use form submit which likes:
required /> <br />
// attach a validator to the container
it works. when I submit, e.valid validates rules. but it refresh web. Oh no, I don't want the way refreshes my web because I want to make SPA with AJAX. So I add onsubmit="return false" in <form>. but I think it is not elegant. I don't like it. If kendo can integrate these. it will be brilliant and elegant.