Set offset and limit for Grid DataProvider

hi,
i looked at following examples for the callbackDataProvider used for a baadin 8 grid:

@Override
protected void init(VaadinRequest vaadinRequest) {
Grid<Person> grid = new Grid<>(Person.class);
grid.setSizeFull();
grid.setDataProvider(
([color=#e74c3c]
sortOrders, offset, limit
[/color]) -> {
Map<String, Boolean> sortOrder = sortOrders.stream()
.collect(Collectors.toMap(
sort -> sort.getSorted(),
sort -> sort.getDirection() == SortDirection.ASCENDING));
return service.findAll(offset, limit, sortOrder).stream();
},
() -> service.count()
);
VerticalLayout layout = new VerticalLayout(grid);
layout.setSizeFull();
setContent(layout);
}

the FetchItemListener implements a method for fetching the items based on a specified offset and limit.
I couldn’t figure out how to modify the offset and limit and trigger a reload of the data with the new values, can someone help me please?
my goal is to provide paging.

I am having the same problem, did you find out how?

#push