I have 2 grids displayed on one page, our top Grid allows editing with a custom edit command. Our lower grid allows for inline editing. I want the ability to disable the top grid's custom Edit function (Edit button) when I click in the lower grid for inline editing using jQuery. Below is what I have attempted
$(function () {
$(document).ready(function () {
var inlineEdit = $("#kendoGrid").data().kendoGrid.select().is(".k-grid-edit-row");
if (inlineEdit > 0) {
var edit = $("#kendoGrid").data("kendoGrid").find("k-grid-edit");
edit.hide();
e.preventDefault();
return false;
}
});
});
$(function () {
$(document).ready(function () {
var inlineEdit = $("#kendoGrid").data().kendoGrid.select().is(".k-grid-edit-row");
if (inlineEdit > 0) {
var edit = $("#kendoGrid").data("kendoGrid").find("k-grid-edit");
edit.hide();
e.preventDefault();
return false;
}
});
});