I have a page where the update is put in motion using a custom button click that resides in the Kendo Toolbar.
The editing is done using GridEditMode.InCell and everything is working for the update but at the end of the process the little red triangle is remaining in the modified cells.
I have tried the following to clear them but it is not working:
....
grid.dataSource.read();
resetGridDirtyIndicators();
...
function resetGridDirtyIndicators (){
var grid = $('#Grid').data().kendoGrid;
var $gridData = grid.dataSource.data();
for (var i = 0; i < $gridData.length; i++) {
var row = grid.tbody.find("tr[data-uid='" + $gridData[i].uid + "']");
var cell = row.find("td:eq(" + $gridData[i].ColumnIndex + ")");
if (cell.hasClass("k-dirty-cell")) {
debugger;
cell.removeClass("k-dirty-cell");
}
}
}
Any Help would be greatly appreciated.
Thanks,
Reid