I have a grid with single selection, and i want to keep the selected item selected after setting new items.
Im trying something like this:
Optional opt = grid.getSelectedItems().stream().findFirst();
grid.setItems( items );
opt.ifPresent( item -> grid.select( item ) ) ;
But then, i cannot ‘deselect’ the row in the client.
any suggestions? ._.