diff --git a/HTMLSamples/grid/export-basic-grid.html b/HTMLSamples/grid/export-basic-grid.html index d773f82..abe2bf6 100644 --- a/HTMLSamples/grid/export-basic-grid.html +++ b/HTMLSamples/grid/export-basic-grid.html @@ -28,10 +28,7 @@ $.ig.loader({ scriptPath: "%%ignite-ui%%/js/", cssPath: "%%ignite-ui%%/css/", - resources:'igGrid,' + - 'modules/infragistics.documents.core.js,' + - 'modules/infragistics.excel.js,' + - 'modules/infragistics.gridexcelexporter.js' + resources:'igGrid,' + 'igGridExcelExporter' }); $.ig.loader(function () { @@ -51,11 +48,9 @@ $("#grid").igGrid({ autoGenerateColumns: false, - width: "100%", - height: "200px", columns: [ { key: "ProductID", headerText: "$$(ProductID)", width: "100px", dataType: "number" }, - { key: "Name", headerText: "$$(Name)", width: "150px", dataType: "string" }, + { key: "Name", headerText: "$$(Name)", width: "250px", dataType: "string" }, { key: "ProductNumber", headerText: "$$(ProductNumber)", width: "200px", dataType: "number" } ], dataSource: data, @@ -63,9 +58,13 @@ }); $("#exportButton").on("click", function () { - $.ig.GridExcelExporter.exportGrid($("#grid"), { - fileName: "igGrid" - }); + $.ig.GridExcelExporter.exportGrid( + $('#grid'), + { + fileName: 'igGrid', + worksheetName: 'Sheet1', + } + ); }); }); }); @@ -73,6 +72,6 @@