Grid and Paginated Rest API

Hi There,

Is there any best practice or code sample on how to display data coming from Paginated Rest API on Vaadin Grid?

Controller for the Rest API is something like;

@RequestMapping(value=“/search”, method=RequestMethod.GET, produces=MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public Page findAll(Pageable pageable) {

}

We do not want to pull all the data from API in one call (it will be millions of records).
Instead everytime user scrolls down at the Grid, We want to call the API to get the next page(s).

We appreciate any suggestion.

Did you ever work out how to do this? I’m about to embark on something similar, but it would be a great help if you already had something working.