Vaadin 10 Grid iterate on rows

Hi,
I’ve created a grid with a string column and a textfield column. I would like to take all the values of the textfields to save them but I can not iterate over the rows to recover the textfield component.
This I did with the vaadin 7 tables.
How can I do ?
Thank you!
17367929.png

Hi,

You need to think a bit differently with Grid - Grid’s designed to support lazy loading, so it’s intentionally not providing a list to all its rows (as there could be hundreds of thousands of them). Instead you could, for example, add value change listeners to the TextFields when you create them and store the changed values to a Map.

-Olli

ok. Thank you |