title: Kendo UI Excel export, generating multiple files, not refreshed properly?
body: <p>I have a single page app, that often creates new data from an array</p>
  
  <p>var searchData = new kendo.data.DataSource({data: buildData});</p>
  
  <p>and then displays it in a grid, </p>
  
  <p>this all looks good except the excel export missbehaves as follows:</p>
  
  <p>run one search and the excel export works fine.</p>
  
  <p>run a second search and the excel export downloads 2 files, the first being a repeat of the results of the first search, the second file being the new search.</p>
  
  <p>run a third search and the excel exports three files.... and so on...</p>
  
  <p>it appears the refresh isn't working for me, but i don't have any idea why not?</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> if(searchedArray) {
                  searchedArray.forEach(function (row) {
                  buildData.push({r:rowCount,w:row['w'],n:'1',nl:'2',o:row['o'],t:row['t'],d:row['d'];
                      rowCount++;
                  });
              }
              var searchData = new kendo.data.DataSource({data: buildData});
  
  
   var sGrid=null;
   
   sGrid = $("#searchedgrid").kendoGrid({
            toolbar: ["excel"],
            excel: {
                fileName: "filename.xlsx",
                proxyURL: "http://demos.telerik.com/kendo-ui/service/export",
                filterable: true
            },
            dataSource: searchData,
            sortable: {
                mode: "multiple",
                allowUnsort: true
            },
            schema: {
                model: {
                    fields: {
                        r: { type: "number" },
                        w: { type: "number" },
                        n: { type: "string" },
                        nl: { type: "string" },
                        o: { type: "string" },
                        t: { type: "string" },
                        d: { type: "date" }
                    }
                }
                  },
                  height: sHeight,
                  scrollable: true,
                  pageable: false,
    selectable: "multiple cell",
                  allowCopy: true,
                  columns: [
                      { field: "r",width: 40,title: "Rank",template:'&lt;center&gt;#=r#&lt;/center&gt;'},
                      { field: "w",width: 50,title: "Weight",template:'&lt;center&gt;#=w#&lt;/center&gt;'},
                      { field: "n", title: "Number", width: "80px",template:'&lt;center&gt;#=n#&lt;/center&gt;'},
                      { field: "nl", title: "&amp;nbsp;", width: "14px",template:'&lt;center&gt;&lt;a href="#=nl#" onclick="javascript:void window.open(\'#=nl#\',\'details\',\'width=800,height=600,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0\');return false;"&gt;&lt;div class="ambLink" id="detaillink" title="View details"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/center&gt;',sortable:false},
        { field: "o",width: 200,title: "Owner"},
                      { field: "t",width: 400,title: "Title",  attributes: {style: 'white-space: nowrap '} },
                      { field: "d",width: 70,title: "Filed",template:'&lt;center&gt;#=d#&lt;/center&gt;'}
                  ]
              }).data("kendoGrid");  
  
   $("#searchedgrid").data('kendoGrid').refresh();</code></pre>
  </div>
  </div>
  </p>