Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Grid handle focused rows/cells
I would love to know how to access the currently focused row in Grid. If you use keyboard to navigate up/down the rows, Grid updates the focused row.
If I press SPACE the focused row will be selected. If I press ENTER the focused row will be in edit state.
Now I want to change the ENTER event on my read-only table. Ideally I want to open the ContextMenu (https://vaadin.com/addon/vaadin-contextmenu) like I pressed right mouse button. But because I don't want to mess up with two APIs I just want to get the focused row. Like Grid#getSelectedRow but Grid#getFocusedRow().
Is there a way to get the focus state without writing client extension?
Thanks in advance
Check this add-on (GridFastNavigation), it is ready made navigation solution if use Grid with unbuffered edit mode.
Here is an another example implementation for you to study.
awesome news, thanks for the information. At the first glance it exactly looks like what I am looking for :-)