I'm using the flowing code to place the validation error messages in eh:grid control.
function complete(args) {
if (args.requestType == "beginedit" || args.requestType == "add") {
var old = $("#" + this._id + "EditForm").validate().settings.errorPlacement;
$("#" + this._id + "BU").ejDropDownList({
select: function (args) {
$(this.element.closest(".e-ddl")).siblings(".e-error").remove();
}
})
var proxy = this;
$("#" + this._id + "EditForm").validate().settings.errorPlacement = function (error, element) {
if (element.attr("ID") == proxy._id + "BU" || element.attr("ID") == proxy._id + "Period"
|| element.attr("ID") == proxy._id + "ISChoice" || element.attr("ID") == proxy._id + "NewExpand") {
$container = $(error).addClass("e-error");
$tail = ej.buildTag("div.e-errortail e-toparrow");
$container.append($tail);
$container.offset({ right: $(element).parent().position().right + $(element).closest("td").width() });
$container.insertBefore(element.closest(".e-widget"))
}
else
old.apply(this, [error, element]);
}
}
}
It work perfectly in Firefox and IE/Edge:
But under Chrome the Validation covers the control:
Thanks,
Mike