What option should I use for Vaadin Grid that it will select rows on right click and ContextMenu action will be called with new selection on server?
Looking at our source, we do:
contextMenu.addGridBodyContextMenuListener(this)
public void onContextMenuOpen(GridContextMenuOpenEvent event) {
// If clicking outside of current selection, set selection to clicked row.
Object itemId = event.getItemId();
boolean rowIsSelected = itemId!=null && grid.isSelected(itemId);
...
// optionally rebuild menu based on selection
}
Oh, thank you, it seems I’ve tried old Table in my tests