问题
i use Grid with DataProvider and lazy loading to load the data into the grid.
How can i get the data from grid after the data was loaded? I mean, i need get a data from grid that already have a data.
i need something like grid.get....
thx.
回答1:
I would use grid.getDataCommunicator().fetchFromProvider(..) which returns stream of items method for this, see API spec here: https://demo.vaadin.com/javadoc/com.vaadin/vaadin-core/10.0.2/com/vaadin/flow/data/provider/DataCommunicator.html#fetchFromProvider-int-int-
来源:https://stackoverflow.com/questions/51708680/vaadin-flow-grid-how-get-the-data-rows-from-grid