Ag-grid to continue scrolling till rowCount = undefined is being passed - Stack Overflow

I am using ag-grid-react server-side source model in my application. I am setting cacheBlockSize = 40,

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745041161a4607815.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信