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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Grid editor focus control
Hi,
when i open grid editor with grid.editItem(id) for example everything works well when grid has focus. But editor does not get focused to allow user to start typing immediately when another component has focus at that moment. For example when onvoked by Button.ClickListener outside of the grid.
I tried to use
grid.focus();
grid.select(id);
to focus the grid before and after the call was made but with no success.
Is there some easy way to focus grid editor, preferably with option to focus certain field in the editor itself?
tried with
grid.getEditorFieldGroup().getFields().iterator().next().focus();
but doesnt help
I'm also facing this issue... any workaround?
This works (in the open listener) but ugly... and to focus the next editor component you need to use "Tab" twice ((Focusable) (getEditor().getBinder().getFields().findFirst().get())).focus();