title: How to change the name of file while exporting data to Excel?
body: <p>How do I change the name of file while exporting data to Excel?</p>
  
  <pre><code>&lt;div id="example" class="k-content"&gt;
      &lt;button type="button"id="btnExport"&gt;Export to csv!&lt;/button&gt;
      &lt;div id="grid"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;script&gt;
  $("#btnExport").click(function (e) {
      var result = "data:application/vnd.ms-excel,";
  
      window.open(result);
  
      e.preventDefault();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>When I click the export button I am getting as download.xls. Is it possible to set the file name  as data.xls? Can any one explain me where I need to configure that?</p>