This is a migrated thread and some comments may be shown as answers.

Focusable rows in kendo grid

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 20 Aug 2020, 07:56 AM

Hi,

Is it possible to make focusable rows in virtual grid? I have example with focusable rows and select with "enter" for regular grid and everything is working. But when  I try to do the same for virtual scroll grid, "space" and arrows controls will stop working after first keyDown and changing rows with "tab" is looping the focus.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 20 Aug 2020, 11:01 AM

Hello, Matej,

Thank you for your examples.

This is expected when virtualization is used as we are not rendering the entire table, only records based on the pageSize. This is why when pressing the tab, the focus goes to the first row, as there are no more focusable elements and the browser goes to the first one.

The other case with space and the arrows is because, on each scroll, we call onPageChange and update the Grid data, which causes a re-render. This, on the other hand, loses the focus as this is a tr element.

Currently, we can only log a task to research the possible options for row navigation with virtualization, but this is a very specific case and may require longer to achieve.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or