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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Grid Context Menu on Cell

Lino Costa
6 years ago May 03, 2016 12:48pm
Peter Hansson
6 years ago Jun 02, 2016 8:28pm

Hello Lino,

In a Vaadin Grid what can be SELECTED is a row, not a cell.

However a cell can have FOCUS.

Both of these concepts have a visual indicator.  Don't mix up the two concepts.
From what you write I believe you mean the FOCUS indicator, not the SELECTION indicator.

There's a ticket on the issue here. The ticket is on the ContextMenu add-on but as pointed out by Sami Ekblad the problem is probably in the Core, not in the add-on. In short what is being discussed is if cell focus should be changed on any form of mouse click on a Grid. Currently focus is only changed on left-button mouse click, not on right-button mouse-click. In particular in connection with things like the row context menus this becomes very confusing so I'm all for if this would change either by allowing focus to change on right-button click as well or allowing cell focus feature to be turned off. If you want to turn off the cell focus feature you can do it yourself with a bit of CSS hack.



Lino Costa
6 years ago Jun 03, 2016 6:54am