So, for anyone who is interested, I managed to get this working in the following way:
Understandinging that the editor template is pretty much wrapped up in a javascript function, no element can be accessed (so I cannot assign an OnUpdate function to the"Update" button in the editor template.
Ihooked into thegrid's "Update" event by doing
.Update(update=>update.Action("CreateAction","ControllerName").Data("SetupValidation")
Then I used the following script:
function SetupValidation() {
var updateButton = $(".k-grid-update");
updateButton.kendoButton({
click: onClickUpdateForm
});
}
function onClickUpdateForm(e) {
var validator = $("#myForm").kendoValidator({
errorTemplate: "",
validate: function (e) {
var dropDowns = $(".k-dropdown");
$.each(dropDowns, function (key, value) {
var input = $(value).find("input.k-invalid");
var span = $(this).find("span.k-dropdown-wrap");
if (input.size() > 0) {
$(span).addClass("dropdown-validation-error");
} else {
$(span).removeClass("dropdown-validation-error");
}
});
}
}).data("kendoValidator"), status = $(".status");
validator.validate();
sendAntiForgery();
}
Hope that helps somebody in the future.