title: kendo grid, why e.model.set not working
body: <p>in my kendo grid, I have 3 columns,  balance, adjustment, and adjustment balance.  adjustment balance is the total of balance and adjustment.  it will be calculated.  If I make a change to adjustment field. adjustment balance should automatically changed.</p>
  
  <p>I am binding save event to grid.</p>
  
  <pre><code>$("#DebtGrid").data("kendoGrid").bind("save", onDebtGridEditComplete); 
  
  
  
  function onDebtGridEditComplete(e) {
  
      debugger;
  
      var grid = $('#NonrecourseDebtGrid').data().kendoGrid;        
      var dataItem = e.model;
      e.model.set('TaxAdjustments', e.values.TaxAdjustments);
  
      var newBalance = getAdjBalance(dataItem.TaxBalance, e.values.TaxAdjustments);
      e.model.set('TaxAdjustmentBalance', newBalance);
      //grid.refresh();
  }
  </code></pre>
  
  <p>I debugged the following function, I see the newBalance is calcualted and after I set the textadjustmentbalance. I checked the e.model, nothing changed. it still has the old value there.</p>
  
  <pre><code>e.model.set('TaxAdjustmentBalance', newBalance);
  </code></pre>
  
  <p>here's my grid.</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;LiabilityVM&gt;()
    .Name("DebtGrid")
    .HtmlAttributes(new { style = "height: 300px;" })
    .Columns(columns =&gt;
                 {
                     columns.Bound(i =&gt; i.Id).Visible(false);
                     columns.Bound(i =&gt; i.AccountId).Visible(false);
  
                     columns.Bound(i =&gt; i.AccountNumber)
                         .Title("Account #")
  
                         .HtmlAttributes(new { nowrap = "nowrap" })
                         .Width(70);
                     columns.Bound(i =&gt; i.TaxBalance)
                         .Title("Balance")
                         .HtmlAttributes(textAlign)
                         .Width(70);
                     columns.Bound(i =&gt; i.TaxAdjustments)
                         .Title("Adjustments")
                         .EditorTemplateName("AmountEditor")
                         .HtmlAttributes(textAlign)
                         .Width(70)
                         .ClientFooterTemplate("&lt;span&gt;&lt;b&gt; Total: &lt;/b&gt;&lt;/span&gt;")
                         .FooterHtmlAttributes(textAlign);
                     columns.Bound(i =&gt; i.TaxAdjustmentBalance)
                         .Title("Adj. Balance")
                         .ClientTemplate("&lt;span href='\\#' style='white-space:nowrap'&gt;#= TaxAdjustmentBalance #&lt;/span&gt;")
                         .HtmlAttributes(textAlign)
                         .Width(70)
                         .ClientFooterTemplate("#= formatAmount(getTotalAdjBalance('NonrecourseDebtGrid'), '{0:c0}') #").FooterHtmlAttributes(textAlign);
                     columns.Bound(i =&gt; i.IsSuppressed)
                         .Title("Suppress")
                         .ClientTemplate("#= showCheckBox(IsSuppressed,Source, Id) #")
                              .Width(50)
                              .Sortable(false)
                              .Filterable(false);
  
                 })
        .Editable(editable =&gt; editable.Mode(GridEditMode.InCell))
  
        .DataSource(grid =&gt; grid.Ajax()
                                .Batch(true)
                                .Model(model =&gt; { 
                                                  model.Id(i =&gt; i.Id);
                                                  model.Field(p =&gt; p.AccountNumber).Editable(false);
                                                  model.Field(p =&gt; p.TaxBalance).Editable(false);
                                                  model.Field(p =&gt; p.TaxAdjustmentBalance).Editable(false);
                                })
                                .ServerOperation(true)
                                .Create(create =&gt; create.Action("Update", "test", parameters))
                                .Read(read =&gt; read.Action("Get", "test", parameters))
                                .Update(update =&gt; update.Action("Update", "test", parameters))
                                .Aggregates(aggregates =&gt;
                                           {
                                               aggregates.Add(p =&gt; p.TaxAdjustmentBalance).Sum();
                                           })
    )
    .Sortable()
    .Filterable()
    .Selectable(s =&gt; s.Mode(GridSelectionMode.Single))
    .Resizable(resize =&gt; resize.Columns(true))
    .Reorderable(reorder =&gt; reorder.Columns(true))
    .ColumnMenu()
    .Scrollable()
    )
  </code></pre>