title: Kendo Grid Data Population Issue
body: <p>I have a kendo grid and i want to populate data on the grid. But before pupolation i have a condition.
  Condition is if no records on grid data read(), then function <code>OnQuantityChange()</code> should be called.
  For that I gave below code:</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: url,
          dataType: "json",
          data: { AssetHdId: AssetHdId },
          success: function (data) {
              var grdParameter = $("#DTList").data("kendoGrid");                
              var count;
              grdParameter.dataSource.read();
              count = grdParameter.dataSource.total();                     
              if (count == 0) {
                  OnQuantityChange();
              }
          }
  });
  </code></pre>
  
  <p>Function <code>OnQuantityChange();</code> contains code to set default data to kendo grid. Here i am getting data. Problem is data comes and removed automatically at the same time itself.</p>
  
  <p>When i give just function only without the condition as below, its fine:</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: url,
          dataType: "json",
          data: { AssetHdId: AssetHdId },
          success: function (data) {
              OnQuantityChange();                
          }
  });
  </code></pre>
  
  <p>But here my requirement is data should be displayed with above conditions. 
  When I add <code>alert()</code> on the first code, its working.</p>