Declined
Last Updated: 02 Jun 2025 07:21 by ADMIN
Michael
Created on: 26 May 2025 08:59
Category: Kendo UI for Angular
Type: Bug Report
1
Keyboard focus trapped in last gridview cell

Hi,

https://stackblitz.com/edit/angular-dadm5ywe?file=src%2Fapp%2Fapp.component.ts

Please select the top-most button, then press TAB until the focus is on the button in the last grid cell.
Then press tab again => the focus moves to the last cell itself.
Press tab again => the focus moves back to the last button. 
=> here we got into an endless loop, you cannot navigate to the button below the grid.

Interestingly, you can leave the grid if you navigate backwards with shift+tab.

best regards,

Michael

 

1 comment
ADMIN
Zornitsa
Posted on: 02 Jun 2025 07:21

Hi Michael,

Thank you for the provided details and StackBlitz example.

From what I can observe in the example, custom <button> elements are rendered in the Grid cells, which is why the keyboard navigation does not behave as expected. To be more comprehensive, in order to include custom elements as part of the built-in keyboard navigation of the Grid, the developer can use the kendoGridFocusable directive and apply it to the respective elements.

More information about the basic concepts of the Grid's built-in keyboard navigation and how to register custom focusable elements (like buttons) within the Grid can be found below:

In this line of thought, I modified the shared StackBlitz example and applied the kendoGridFocusable directive to the <button> elements rendered in the cell template of the Grid:

As a result, the buttons in the above example can be navigated using the Arrow keyboard keys since this is the built-in behavior of the Grid's keyboard navigation - the arrow keys move the focus between the cells. Then, the Tab key can be used to exit the Grid and navigate to the <button> rendered below the component.

With the above being said, the reported behavior of the Grid's keyboard navigation in the initially shared StackBlitz example is expected and not considered a bug on our side since all custom elements in the Grid that must be focusable should be registered as such by using the kendoGridFocusable directive.

I hope the provided information clears up the matter.

Regards,
Zornitsa
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.