Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150600 | Jan 13,2020 10:50 AM UTC | Jan 14,2020 11:46 AM UTC | React - EJ 2 | 1 |
![]() |
Tags: Grid |
Grid Excel export toolbar on click method:
public toolbarClick = (args: ClickEventArgs) => { if (this.grid && args.item.id === 'grid_excelexport') { this.grid.excelExport(); } }
This was taken from the documentation, except that, args.item.id is 'grid_excelexport' only if the grid id is "grid",
if I don't set grid ID or in the case of a child grid, the grid ID is dynamic and it is not possible to intercept the call.
toolbarClick(args) {
switch (args.item.text) {
case 'PDF Export':
this.gridInstance.pdfExport();
break;
case 'Excel Export':
this.gridInstance.excelExport();
break;
case 'CSV Export':
this.gridInstance.csvExport();
break;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.