It’s working only first change, so if I change to basevalue as 2 then linevalue is 4 so it’s ok after that if I change to basevalue as 4 it will be 8 but its show as 16.
var numerictextbox = $("#AMOUNTS").data("kendoNumericTextBox");
numerictextbox.bind("change", function () {
let value = this.value();
let arr = $("#productList").data("kendoGrid").dataSource.data();
if (arr.length > 0 ) {
arr.map(function (item) {
item.AMOUNT = (item.AMOUNT * value);
});
$("#productList").data("kendoGrid").setDataSource(arr);
}
});
basevalue=1;
linevalue=2;
MASTERAMOUNT=1
GRIDAMOUNT=2, so formula is MASTERAMOUNT * GRIDAMOUNT
When I change to masteramount as 2, the gridamount is set 4 so its ok (I said its correct is first run),
But when I change to masteramount as 4, the gridamount is set 16 instead of 8
Thank you so much.