Hi,
We are using Kendo Controls for MVC (kendo UI Version 2013.1.514) in our project and we have some cross browser compatibility issue.
Specifically, the Kendo client side validations (unobstrusive) does not work as expected in IE 9. Usually when you focus a required field control (textbox for instance) and move to the next control without entering data, the unobstrusive validation triggers and shows the message. The same is true when you directly hit submit without entering any required fields.
The application works fine in Chrome and Firefox but it does not work in IE 9.
This is how we are triggering validate function.
View Model Binding
Attached other files for support.
Any help is highly appreciated. Thanks.
We are using Kendo Controls for MVC (kendo UI Version 2013.1.514) in our project and we have some cross browser compatibility issue.
Specifically, the Kendo client side validations (unobstrusive) does not work as expected in IE 9. Usually when you focus a required field control (textbox for instance) and move to the next control without entering data, the unobstrusive validation triggers and shows the message. The same is true when you directly hit submit without entering any required fields.
The application works fine in Chrome and Firefox but it does not work in IE 9.
This is how we are triggering validate function.
$(document).ready(
function
() {
var
form = $(
"form"
);
var
validator = form.kendoValidator().data(
"kendoValidator"
);
$(
"#btnSubmit"
).click(
function
() {
if
(validator.validate()) {
form.submit();
}
});
});
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
@Html.LabelFor(model => model.CompanyName)
<
span
>
@Html.EditorFor(model => model.CompanyName)
@Html.ValidationMessageFor(model => model.CompanyName)
</
span
>
--- omitted for brevity
<p>
<input id="btnSubmit" type="submit" value="Add Customer" />
</p>
}
Any help is highly appreciated. Thanks.