title: Refresh with parameters in the Kendo UI Grid with AngularJS
body: <p>I'm trying to use the Kendo UI Grid with AngularJS, where I define the grid like in:  </p>
  
  <pre><code>&lt;div id="grid" kendo-grid="grid" k-options="gridOptions" /&gt;  
  </code></pre>
  
  <p>I then set the options in the controller, like in:  </p>
  
  <pre><code>        $scope.gridOptions = {
              height: 543,
              scrollable: {
                  virtual: true
              },
              sortable: true,
              dataSource: {
                  type: 'json',
                  serverPaging: true,
                  serverSorting: true,
                  pageSize: 100,
                  transport: {
                      read: {
                          url: '/C99_JsonService/F20_GetTrattativePerRicercaConFiltro',
                          dataType: 'json',
                          data: {
                              idvenditore: 9,
                              stato: $scope.statomacchina,
                              esito: $scope.esitotrattativa
                          },
                      }
                  },
                  schema: {
                      data: function(result) {return result.Data || result;},
                      total: function(result) {return result.Total || result.length || 0;}
                  }
              }
          };
  </code></pre>
  
  <p>As you can see, I have some other custom parameters, to use in the request, and they are tied to angular variables as well.<br>
  On first load things go well, and I get the right data.<br>
  Then, I added a button to refresh the grid with the new values that the user has edited in the UI, tied to 'esitotrattativa' e 'statomacchina'.
  I tied to the button the following function:</p>
  
  <pre><code>$scope.esegui = function () {
      $scope.grid.dataSource.read();
      $scope.grid.refresh();
  };
  </code></pre>
  
  <p>When I click the button (executing function 'esegui'), the request is again sent to the server, but with the original values in the variables, even if I see that the actual values in the parameters are changed: it looks like there is some optimization that uses cached values...<br>
  Or am I missing anything important?<br>
  Thanks to everybody.<br>
  Andrea</p>