2
votes

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 = event.target;   
var row = $(this).parents('tr');  
var index = row.index();  
grid.editRow(row);

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

1

1 Answers

1
votes

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

grid.dataSource.data()

instead of internal fields:

grid.dataSource._data