Hello,
Is it possible to implement a method in the Grid to choose to navigate by row and that once this mode is activated, the row selection is automatic, as it worked in Table (Vaadin 7)?
Hello,
Is it possible to implement a method in the Grid to choose to navigate by row and that once this mode is activated, the row selection is automatic, as it worked in Table (Vaadin 7)?
There is a cookbook recipe: How do I select Grid rows automatically using up/down arrow keys - Vaadin Cookbook
And maybe this one is helpful, too: How do I excel like cell selection in a grid - Vaadin Cookbook
Hi,
Where can I find this css file?
“./recipe/grid-arrow-selection/vaadin-grid-styles.css”
used in this example:
How do I select Grid rows automatically using up/down arrow keys - Vaadin Cookbook
There is also this is add-on in the Directory, which wraps the functionality
Hello,
The inclusion of the CSS worked correctly, thank you very much for your feedback.
The only issue is the focus in the select method.
By default, our applications always select the first item in the grid after performing a search in the database and allow the user to navigate through the grid items using the keyboard.
However, when executing the command below, the item is selected, but keyboard navigation does not work. It is necessary to click on the grid item, losing the selection, and then select it again for keyboard navigation to work. How can we get around this issue?
select(getListDataView().getItem(0));