I have a cell that is not editable, it displays a value from the datasource. While editing the row and changing other cells, a new value is calculated. The datasource reflects the new value but the cell does not render it.
export function init(columns: any) {
var ds = new nkfDataSources.FilterByJobQuickEntryDistribution();
ds.group = { field: "PropertyName" };
grid = $("#jobQuickEntryDistributionGrid").kendoGrid({
columns: columns,
groupable: false,
pageable: true,
sortable: true,
filterable: true,
toolbar: kendo.template($("#grid_jobQuickEntryDistribution_toolbar").html()),
dataSource: ds.get(onGridparameterMap),
editable: true,
edit: function (e) {
e.model.unbind("change", model_change).bind("change", model_change);
}
}).data("kendoGrid");
}
function model_change(e) {
var model = this;
model.NetFee = nkfCommon.Calculate.netFee(
model.GrossFee,
nkfCommon.Calculate.departmentOffset(model.GrossFee, model.DepartmentOffset),
nkfCommon.Calculate.expenses(model.ClientReimbursedExpenses, model.NonClientReimbursedExpenses, model.DirectBilledExpenses));
}