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
版权声明:本文标题:Ag-grid to continue scrolling till rowCount = undefined is being passed - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745041160a2639082.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论