Skip to content

Commit 25b33a3

Browse files
author
pipeline
committed
feature(EJ2-3507): CSV export removed.
1 parent 5eb1372 commit 25b33a3

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/grid/exporting-plnkr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/grid/exporting.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
</div>
66
</div>
77
<div id="description">
8-
<p>Grid supports client side exporting which allows you to export its data to Excel, Pdf and CSV formats.</p>
9-
<p>In this demo, excelexport, pdfexport and csvexport items are defined in toolbar. For these toolbar items, we have defined
8+
<p>Grid supports client side exporting which allows you to export its data to Excel and Pdf formats.</p>
9+
<p>In this demo, excelexport and pdfexport items are defined in toolbar. For these toolbar items, we have defined
1010
actions in toolbarClick event to export the Grid data using the
1111
<code><a target="_blank" class="code"
1212

1313
href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#excelexport">excelExport</a></code>,
1414
<code><a target="_blank" class="code"
1515
href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#pdfexport">pdfExport</a></code>
16-
and <code><a target="_blank" class="code"
17-
href="http://ej2.syncfusion.com/documentation/grid/api-grid.html#csvexport">csvExport</a></code> methods.</p>
16+
methods.</p>
1817
<p style="font-weight: 500">Injecting Module</p>
1918
<p><br/>Grid features are segregated into individual feature-wise modules. To use exporting feature, we need to inject ExcelExport
2019
and PdfExport module using the <code>Grid.Inject(ExcelExport, PdfExport)</code> method.</p>

src/grid/exporting.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { orderData } from './datasource';
33

44
Grid.Inject(Page, Toolbar, ExcelExport, PdfExport);
55
/**
6-
* Excel,PDF, CSV export sample
6+
* Excel,PDF export sample
77
*/
88
this.default = (): void => {
99
let grid: Grid = new Grid(
@@ -12,7 +12,7 @@ this.default = (): void => {
1212
allowExcelExport: true,
1313
allowPdfExport: true,
1414
allowPaging: true,
15-
toolbar: ['excelexport', 'pdfexport', 'csvexport'],
15+
toolbar: ['excelexport', 'pdfexport'],
1616
pageSettings: { pageCount: 5 },
1717
columns: [
1818
{ field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'right' },
@@ -32,9 +32,6 @@ this.default = (): void => {
3232
if ((args as any)['item'].id === 'Grid_excelexport') {
3333
grid.excelExport();
3434
}
35-
if ((args as any)['item'].id === 'Grid_csvexport') {
36-
grid.csvExport();
37-
}
3835
/* tslint:enable */
3936
};
4037
};

0 commit comments

Comments
 (0)