title: Cannot update value in Kendo-grid - cannot read 'data' property of undegined
body: <p>I am updating Kendo-grid when the selected value in option HTML element is changed. But when I try to update the value in the grid inline in the browser's console is printed "kendo.web.min.js:13 Uncaught TypeError: Cannot read property 'data' of undefined".</p>
  
  <p>What Did I wrong?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt; script &gt;
    $(document).ready(function() {
    
    // on changing zone option selector
      $('#SelectProviderZoneForPrices').change(function (e) {
        var zoneId = $(this).val();
        var productId = $('#SelectProviderForPrices').val();
  
        $.ajax({
          type: "GET",
          url: "@Html.Raw(Url.Action("LoadZoneWeights", "ShippingZonableByWeight"))",
          success: loadPrices, // loads the shipping providers which delivers by zones
          dataType: 'json',
          data: { ProviderId: productId, ZoneId: zoneId }});
      });
  
      // loads prices
      function loadPrices(data) {
        var grid = $('#shippingProviderWeightPrice-grid').getKendoGrid();
        grid.dataSource.data(data.Data); // my backend returns DataSourceResult
        grid.refresh();
      }
    
      // load Kendo-grid
      $("#shippingProviderWeightPrice-grid").kendoGrid({
        dataSource: {
          type: "json",
          transport: {
            read: {
              url: "@Html.Raw(Url.Action("ActionMethod", "Controller"))",
              type: "GET",
              dataType: "json"
            },
            update: {
              url: "@Html.Raw(Url.Action("ActionMethod", "Controller"))",
              type: "POST",
              dataType: "json"
            }
          },
          schema: {
            total: "Total",
            errors: "Errors",
            model: {
              fields: {
                ProviderWeightsId: {
                  editable: false,
                  visible: false,
                  type: "number"
                },
                ZoneId: {
                  editable: false,
                  visible: false,
                  type: "number"
                },
                ZoneName: {
                  editable: false,
                  visible: false,
                  type: "string"
                },
                WeightFrom: {
                  editable: false,
                  visible: true,
                  type: "number"
                },
                WeightTo: {
                  editable: false,
                  visible: true,
                  type: "number"
                },
                Price: {
                  editable: true,
                  visible: true,
                  type: "number"
                }
              }
            }
          },
          requestEnd: function(e) {
            if (e.type == "update") {
              this.read();
            }
          },
          error: function(e) {
            display_kendoui_grid_error(e);
            this.cancelChanges();
          },
          serverPaging: true,
          serverFiltering: true,
          serverSorting: true
        },
        pageable: {
          refresh: true,
          numeric: false,
          previousNext: false,
          info: false
        },
        editable: {
          confirmation: true,
          mode: "inline"
        },
        scrollable: false,
        columns: [{
          field: "WeightFrom",
          title: "Weight From",
          format: "{0:n3}",
          width: 100
        }, {
          field: "WeightTo",
          title: "Weight To",
          format: "{0:n3}",
          width: 100
        }, {
          field: "Price",
          title: "Price",
          format: "{0:n3}",
          width: 100
        }, {
          command: [{
            name: "edit",
            text: "Edit"
          }]
        }]
      });
    }); &lt; /script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;fieldset&gt;
    &lt;legend&gt;&lt;strong&gt;Manage Weights&lt;/strong&gt;
    &lt;/legend&gt;
    &lt;table class="adminContent"&gt;
      &lt;tr&gt;
        &lt;td class="adminTitle"&gt;Select Provider&lt;/td&gt;
        &lt;td class="adminData"&gt;
          &lt;select id="SelectProviderForPrices" name="ProviderId"&gt;
            &lt;option value="0"&gt;- Select Provider -&lt;/option&gt;
          &lt;/select&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td class="adminTitle"&gt;Select Zone&lt;/td&gt;
        &lt;td class="adminData"&gt;
          &lt;select id="SelectProviderZoneForPrices" name="ProviderId"&gt;
            &lt;option value="0"&gt;- Select Zone -&lt;/option&gt;
          &lt;/select&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/fieldset&gt;
  &lt;br/&gt;
  &lt;div id="shippingProviderWeightPrice-grid"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>