Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146258 | Jul 29,2019 06:43 AM UTC | Jul 29,2019 09:03 AM UTC | React - EJ 2 | 3 |
![]() |
Tags: Grid |
toolbarClick(args) {
switch (args.item.text) {
case 'PDF Export':
this.gridInstance.pdfExport();
break;
case 'Excel Export':
this.gridInstance.excelExport();
break;
}
}
render() {
return (<div className='control-pane'>
<div className='control-section'>
<GridComponent dataSource={orderDetails} ref={grid => this.gridInstance = grid} toolbar={this.toolbarOptions} allowPaging={true} allowExcelExport={true} allowPdfExport={true} toolbarClick={this.toolbarClick.bind(this)} >
. . .
. . . .
<Inject services={[Page, Toolbar, ExcelExport, PdfExport, Group]} />
</GridComponent>
</div>
</div>);
} |
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.