Skip to content

Commit

Permalink
feature(EJ2-3507): CSV export removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
pipeline committed Oct 6, 2017
1 parent 5eb1372 commit 25b33a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/grid/exporting-plnkr.json

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/grid/exporting.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
</div>
</div>
<div id="description">
<p>Grid supports client side exporting which allows you to export its data to Excel, Pdf and CSV formats.</p>
<p>In this demo, excelexport, pdfexport and csvexport items are defined in toolbar. For these toolbar items, we have defined
<p>Grid supports client side exporting which allows you to export its data to Excel and Pdf formats.</p>
<p>In this demo, excelexport and pdfexport items are defined in toolbar. For these toolbar items, we have defined
actions in toolbarClick event to export the Grid data using the
<code><a target="_blank" class="code"

href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#excelexport">excelExport</a></code>,
<code><a target="_blank" class="code"
href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#pdfexport">pdfExport</a></code>
and <code><a target="_blank" class="code"
href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#csvexport">csvExport</a></code> methods.</p>
methods.</p>
<p style="font-weight: 500">Injecting Module</p>
<p><br/>Grid features are segregated into individual feature-wise modules. To use exporting feature, we need to inject ExcelExport
and PdfExport module using the <code>Grid.Inject(ExcelExport, PdfExport)</code> method.</p>
Expand Down
7 changes: 2 additions & 5 deletions src/grid/exporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { orderData } from './datasource';

Grid.Inject(Page, Toolbar, ExcelExport, PdfExport);
/**
* Excel,PDF, CSV export sample
* Excel,PDF export sample
*/
this.default = (): void => {
let grid: Grid = new Grid(
Expand All @@ -12,7 +12,7 @@ this.default = (): void => {
allowExcelExport: true,
allowPdfExport: true,
allowPaging: true,
toolbar: ['excelexport', 'pdfexport', 'csvexport'],
toolbar: ['excelexport', 'pdfexport'],
pageSettings: { pageCount: 5 },
columns: [
{ field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'right' },
Expand All @@ -32,9 +32,6 @@ this.default = (): void => {
if ((args as any)['item'].id === 'Grid_excelexport') {
grid.excelExport();
}
if ((args as any)['item'].id === 'Grid_csvexport') {
grid.csvExport();
}
/* tslint:enable */
};
};

0 comments on commit 25b33a3

Please sign in to comment.