简体   繁体   中英

AG GRID - get lines on the current page with pagination and infinite model

I want to know how to get all the nodes or rows that are in the current AG-Grid pagination.

The closest I got to this was this.gridApi.getRenderedNodes() , but it does not bring all the lines from the current page.

Framework website: https://www.ag-grid.com/ .

You can get the data of your table with the API method getModel() . Make sure to use the filtered data. Then, you can use the method paginationGetPageSize() to find out the currently configured page size. Together with paginationGetCurrentPage() you can then extract the subset of rows which are on the current page.

See also the documentation: https://www.ag-grid.com/documentation/javascript/grid-api/

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