This is my code:
dataitem["ApproverRole1"] = '1'
dataitem["ApproverRole1Id"] ='1'
angular.forEach(grid.dataSource.data(), function (dataitem) {
dataitem["ApproverRole1"] = '2';
dataitem["ApproverRole1Id"] = '2';
});
before refresh updated data is available.
console:
dataitem["ApproverRole1"] = '2';
dataitem["ApproverRole1Id"] = '2';
But once below code executes then old value gets updated again in model
$('#grid').data('kendoGrid').refresh();
Console:
dataitem["ApproverRole1"] = '1'
dataitem["ApproverRole1Id"] ='1'
Actual value should be 2 but 1 is still there.
Thanks for help.