title: Duplicate fields in my (kendo grid) exported data file
body: <p>I have kendo grid and export button in my application.Exporting grid data is working fine but here some rows are repeated  and they are displaying at the end of the file.And here i gave custom name for the exported file.Can any one tell me whats wrong in my code. please?
  here is the export button click code</p>
  
  <pre><code>      $("#btnExport").click(function(e) {
    var dataSource=  $("#grid").data("kendoGrid").dataSource; 
    var filteredDataSource = new kendo.data.DataSource( { 
    data: dataSource.data(), 
    filter: dataSource.filter() 
   }); 
   filteredDataSource.read();
   var data = filteredDataSource.view();
  
      var result = "data:application/vnd.ms-excel,";
  
   result += "&lt;table&gt;&lt;tr&gt;&lt;th&gt;OrderID&lt;/th&gt;&lt;th&gt;Freight&lt;/th&gt;&lt;th&gt;Order Date&lt;/th&gt;&lt;th&gt;Ship Name&lt;/th&gt;&lt;th&gt;Ship City&lt;/th&gt;&lt;/tr&gt;";
  
   for (var i = 0; i &lt; data.length; i++) {
       result += "&lt;tr&gt;";
  
       result += "&lt;td&gt;";
       result += data[i].OrderID;
       result += "&lt;/td&gt;";
  
       result += "&lt;td&gt;";
       result += data[i].Freight;
       result += "&lt;/td&gt;";
  
       result += "&lt;td&gt;";
       result += kendo.format("{0:MM/dd/yyyy}", data[i].OrderDate);
       result += "&lt;/td&gt;";
  
       result += "&lt;td&gt;";
       result += data[i].ShipName;
       result += "&lt;/td&gt;";
  
       result += "&lt;td&gt;";
       result += data[i].ShipCity;
       result += "&lt;/td&gt;";
  
       result += "&lt;/tr&gt;";
   }
  
   result += "&lt;/table&gt;";
   var dt = new Date();
      var day = dt.getDate();
      var month = dt.getMonth() + 1;
      var year = dt.getFullYear();
      var hour = dt.getHours();
      var mins = dt.getMinutes();
      var postfix = day + "." + month + "." + year + " " + hour + ":" + mins;
      var a = document.createElement('a');
    var table_div = (document.getElementById('grid').getElementsByTagName('tbody')[0]);
  var table_html = table_div.outerHTML.replace( );
   a.href = result + ',' + table_html;
        a.download = 'exporteddata@'  +postfix+ '.xls';
      a.click();
   e.preventDefault();
                                                      });
  </code></pre>
  
  <p>Here is the fiddle <a href="http://jsfiddle.net/SZBrt/35/" rel="nofollow">http://jsfiddle.net/SZBrt/35/</a></p>