function fieldChanged(e) {
var colindex = e.container[0].cellIndex;
var grid = $("#gridLine").data("kendoGrid");
var selectedItem = grid.dataItem($(e.container).closest("tr"));
if (colindex == 8)
//e.model.set('TriggeringField', 'UnitPrice');
selectedItem.TriggeringField = 'UnitPrice';
if (colindex == 9)
selectedItem.TriggeringField = 'DiscountPercentage';
// e.model.set('TriggeringField', 'DiscountPercentage');
}
OK I fixed this by not using the e.model.set feature and instead just set the value directly on the selectedItem as above