简体   繁体   中英

Ag-grid actual number of rows in table

I am using ag-grid in my react project and I started creating custom pagination because I needed some more things to be shown. Right now it looks like this:

在此处输入图片说明

Top pagination is the default one from ag-grid, second one is my custom. Of course I am using Pagination api props to show all of those things.

The problem here is that I don't know how to get first elements of pagination so numbers that show which rows are actually shown - "23 to 33". There is no props in pagination api of ag-grid so I had to manage it by myself. How can I get those things from API, is it even possible?

在此处输入图片说明

I see only this props and there is nothing about actual rows that are shown

我通过使用 pagination api props 并将 paginationGetCurrentPage() 乘以 paginationGetPageSize() 来管理它

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