Reputation: 33
I am using multiple row selection in vaadin 8 grid, I need an event that gives me the selected row object upon clicking the selection checkbox not the row click.
Upvotes: 3
Views: 527
Reputation: 10643
You should use grid.addSelectionListener(..)
for this. SelectionEvent
is fired each time you change selection, i.e. click the checkbox in case of multiselection model. In case SelectionEvent
is instance of MultiSelectionEvent
you can get the last added selection
Or removed selection
Upvotes: 2