Skip to content

Commit 5c6e7d3

Browse files
Remove Dep. ExportingEvent.cancel
1 parent 1db10ea commit 5c6e7d3

5 files changed

Lines changed: 1 addition & 7 deletions

File tree

ASP.NET Core/Views/Home/Index.cshtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
118118
});
119119
});
120-
e.cancel = true;
121120
} else if (e.format === 'pdf') {
122121
const doc = new window.jspdf.jsPDF();
123122
DevExpress.pdfExporter

Angular/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class AppComponent {
4747
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
4848
}).catch(() => { });
4949
}).catch(() => { });
50-
e.cancel = true;
5150
} else if (e.format === 'pdf') {
5251
const doc = new jsPDF();
5352
exportDataGridToPdf({

React/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ function onExporting(e: DataGridTypes.ExportingEvent): void {
7676
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
7777
}).catch(() => {});
7878
}).catch(() => {});
79-
e.cancel = true;
8079
} else if (e.format === 'pdf') {
8180
const doc = new jsPDF();
8281
exportDataGridToPdf({

Vue/src/components/DataGridContent.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ function exportGrid(e: DxDataGridTypes.ExportingEvent): void {
172172
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
173173
});
174174
});
175-
e.cancel = true;
176-
}
177-
else if (e.format === 'pdf') {
175+
} else if (e.format === 'pdf') {
178176
const doc = new jsPDF();
179177
exportDataGridToPdf({
180178
jsPDFDocument: doc,

jQuery/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ $(() => {
145145
saveAs(new Blob([buffer], { type: 'application/octet-stream' }), 'DataGrid.xlsx');
146146
});
147147
});
148-
e.cancel = true;
149148
} else if (e.format === 'pdf') {
150149
const doc = new jsPDF();
151150
DevExpress.pdfExporter

0 commit comments

Comments
 (0)