admin管理员组

文章数量:1410712

I am using ag-grid-react server-side source model in my application. I am setting cacheBlockSize = 40, and defining a custom datasource to be used in getRows() function. I need to call 4 APIs in the datasource and the APIs are paginated. So I am requesting 10 records from each API to make up block size of 40.

Now the problem I am running into is - I would like to keep calling the APIs until I know that data is exhausted. That means until every call returns less than 10 records, I would like ag-grid to trigger getRows(). But the moment, I receive less than 10 records from any one of the call, my resulting dataSize that I set in success callback becomes less than 40 (block size). Even though I am passing rowCount = undefined, the getRows() is not being triggered again. I am assuming this is due to ag grid stopping further calls because it got blockSize less than 40, so considering it as last block.

Can I get any workaround to solve this?

enter image description here

本文标签: Aggrid to continue scrolling till rowCountundefined is being passedStack Overflow