When running the code below, the first selected row updates but the next one throws a "Cannot read property 'set' of undefined".
I have the datasource batch set to true and am using dataItem for each selected row and setting the value from there.
var grid = $("#grid").data("kendoGrid");var selectedRows = grid.select();if (selectedRows.length > 0 && unit != "") { $.each(selectedRows, function (i, row) { var data = grid.dataItem(row); data.set('UnitsInStock', unit); }); grid.saveChanges();}
Here is a dojo sample of it http://dojo.telerik.com/aFIwuYUs