Hi,
What if we try to loop through the dataSource object and try to set the data in one of the objects (like the below code). How to the "save", "edit", "change" events trigger in this scenario?
var dataSource = $("#quoteDetailGrid").data("kendoGrid").dataSource;
var data = dataSource.data();
if (data != null && data.length > 0) {
for (var count = 0; count < data.length; count++) {
if (data[count].LineItemType != null) {
var anteil = data[count].ListAmount / totalList;
if (anteil != 0) {
data[count].set("TotalDiscountAmount", 50);
}
else {
data[count].set("ManualDiscount", 0);
}
}
}
}