When you attach a function to the grid edit event, the parameter passed to the function contains the grid model as follows:
function onEdit(e) {
if (e.model.isNew()) {
...
}
}
I have a function in my page that sets the blur event for each cell in a row being edited. It looks as follows:
function setUpOnBlurEvent() {
$("body").on("blur", "table tr.k-grid-edit-row input", function () {
...
});
}
In the function definition above for the blur event, I need to get access to the grid model so that I can enter values in certain cells of the row being edited. How can I get access to this model. Or, is there an alternate way of inserting values into other cells in the grid row being edited from my blur event function?