Which means I want to focus the first row in the Grid on ENTER.
When ENTER has been pressed the first row of the grid is selected, but the focus is still on the text field, so keyboard navigation doesn’t work. I would have to click the grid with the mouse to give the focus to the grid and then keyboard navigation will work.
I’ve also tried with selectCell() without success.
I need the keyboard navigation to work after giving focus to the grid.
Not sure if support has a better answer… I wanted to ask if you’ve tried catching onkeydown instead of onkeyup?
If you catch onkeydown and then in the event handler do selectRow() or selectRowById() and then cancel event. Also you might need to add grid.setActive().
I tried what you recommended but it didn’t work, the behavior remained. Then I had some sort of epiphany and did the following and now it works. All that was needed was to force the focus out of the field before giving it to the grid.