I'm currently using a kendo grid. What I've been trying to do is that when I click on the add new row button the empty row(k-grid-edit-row) displays. I want to throw an alert message and saying complete the editing operation first when I click on other rows during the editing operation. But the key is, I don't want the alert message to be displayed when I click on the current inline editing row.
What I have done right now is that I also get an alert message when I click on current inline edit row.
$('.k-grid-content').on("mousedown", function (e) {
var grid = $('#Grid').closest(".k-grid");
var editRow = grid.find(".k-grid-edit-row");
if (editRow.length > 0) {
alert("Please complete the editing operation before editing another row");
e.preventDefault();
}
else return;
});