arvind arvind - 1 month ago 10x
Javascript Question

Come out of Edit mode using javascript- kendo grid

I am using Kendo Grid with inline editing .

I need, on click of checkbox which is present in the grid i have to make row as editable and come out of edit mode.
To make kendo grid as editable i am using this code

var grid = $("#GridID").data("kendoGrid");

var gridDataArray = grid.dataSource._data;

var ctrl =;

var row = $(this).parents('tr');

var index = row.index();


so the selected row is in edit Mode. Now, i need to get out of edit mode using javascript/JQuery.


Use saveRow or cancelRow, depending on whether you want to save the user changes or not.

On a side note, use the official data method

instead of internal fields: