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, 3 weeks ago
Put keyboard focus to Grid
Is it possible to put keyboard focus to Grid? I want the user to be able to navigate the grid with the keyboard just upon the load.
Last updated on
Doesn't the normal focus() work? I haven't tried it with Grid, but it's a bug if it doesn't work.
Last updated on
Not all Vaadin components have focus() :/ However, programmatic focus for Grid is actually already implemented but will unfortunately not make it to 7.5. You could write a simple Extension to do it though.
Last updated on
The focus() method is protected, so I tried:
Grid myGrid = new Grid() { { focus(); } }
but with no success...
Last updated on
You cannot reply to this thread.