Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Why Vaadin does not select rows on right click in Grid?
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?
Last updated on
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
}
Last updated on
+1
Oh, thank you, it seems I've tried old Table in my tests
Last updated on
You cannot reply to this thread.