arvind arvind - 1 year ago 165
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.

Answer Source

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:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download