Vaadin Flow Grid. How get the data/rows from grid

孤者浪人 提交于 2021-02-08 10:12:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!