I'm trying to implement pagination with Grid component. I may be wrong, but unfortunately I'm unable to find a pagination component for Grid in the official Vaadin documentation https://vaadin.com/docs/latest/components/grid. Is there any particular reason why Vaadin Grid component doesn't have a pagination component? I'm only able to see the laze load. But what in case I have 1000k rows, and I'd like to move to the page #100 without scrolling to it though the data set? How to properly implement it with Vaadin Grid?
Another question regarding the com.vaadin.flow.data.provider.DataProvider
Looks like I have to implement two different methods in order to return the count and the actual content. But my business service method already returns Page
object which contains size and content. How to properly implement DataProvider in such case? I'd like to avoid the second call to database for performance purpose.