title: Kendo grid data export to a excel file
body: <p>I have configured the kendo grid and configured all the table rows and header.When I click export button it is generating an excel file.But where the problem occur I don't know with same configuration I have done in 
  IE there instead of generating file it was showing the data format in URL with <code>data:application/vnd.ms-excel,&lt;table&gt;&lt;tr&gt;&lt;th&gt;OrderID&lt;/th&gt;&lt;th&gt;Freight&lt;/th&gt;.....</code></p>
  
  <pre><code>   var grid = $("#grid").kendoGrid({
          dataSource: {
              type           : "odata",
              transport      : {
                  read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
              },
              schema         : {
                  model: {
                      fields: {
                          OrderID  : { type: "number" },
                          Freight  : { type: "number" },
                          ShipName : { type: "string" },
                          OrderDate: { type: "date" },
                          ShipCity : { type: "string" }
                      }
                  }
              },
              pageSize       : 10
          },
          filterable: true,
          sortable  : true,
          pageable  : true,
          columns   : [
              {
                  field     : "OrderID",
                  filterable: false
              },
              "Freight",
              {
                  field : "OrderDate",
                  title : "Order Date",
                  width : 100,
                  format: "{0:MM/dd/yyyy}"
              },
              {
                  field: "ShipName",
                  title: "Ship Name",
                  width: 200
              },
              {
                  field: "ShipCity",
                  title: "Ship City"
              }
          ]
      }).data("kendoGrid");
  </code></pre>
  
  <p>Button click for Export Grid data to Excel.</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;";
   if (window.navigator.msSaveBlob) {
          window.navigator.msSaveBlob(new Blob([result]),'export.xls');
      } else {
          window.open(result);
      }
  
  
   e.preventDefault();
  });
  </code></pre>