简体   繁体   中英

AG-GRID export all Data As Excel with custom pagination

We are using our custom pagination rendering only 20 records in the ag-grid enterprise version at a time. I want to export excel with all pages Data at once.

I'm having following code:-

this._gridOptions.api.exportDataAsExcel({ fileName: 'projects_list', sheetName: 'Projects', headerRowHeight: 35});


AgGridPagination = require('/components/ag_grid_pagination')
agGridPagination = AgGridPagination.initialize(@_gridOptions)
@_gridOptions.onPaginationChanged = agGridPagination.renderPagination.bind(agGridPagination)
AgGridPagination.initializePaginationListeners()

exportDataAsExcel exports only selected Page, while I want to export all the data from all the pages.

is there any way to get all the data using exportDataAsExcel ? I'm using AG-Grid in a Ruby on Rails application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM