Get record backed grid data on button click

HI there,

We currently have a gridfield which displays record data, and we have a requirement where on a button click we will show additional information which is fetched from an API and displayed in the grid.

I'm trying to find a way to fetch the data from the API for only the records which are currently shown in the grid. Is there a way to get the list of values currently being shown in the grid without forcing the user to select them via a checkbox? Or is there an alternative solution to this?

I was considering saving the paging information into a local variable and using that to query the record, which will in turn query the API, but that will only work if the user performs a paging operation.

Thanks for any help.

  Discussion posts and replies are publicly visible