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

Batch Grid Chrome Tab Key Issue

4 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 03 Feb 2016, 07:57 PM

I'm working with the Kendo UI batch editor in Chrome. When a user hits the tab key to navigate to the next cell, the page is hijacked and automatically does a page down action to scroll down the page.

This can be very frustrating for our Chrome users. It does not happen in Internet Explorer 11.

 

The undesired functionality can be reproduced in the batch editing example here:

http://demos.telerik.com/kendo-ui/grid/editing

 

Any ideas on how I can prevent this from happening?

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 08 Feb 2016, 01:42 PM

Hello Brandon,

 

We are not sure what you mean by this `the page is hijacked and automatically does a page down action to scroll down the page`. Can you please elaborate a bit more?

 

When keyboard navigataion, i.e navigatable: true, is enabled for the Grid it handles certain keys like page up/down to change current page and persist focused state inside the widget. If this is what you mean by the above statement it is expected. You can disabled it by setting navigatable options to false in widget configuration.

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brandon
Top achievements
Rank 1
answered on 08 Feb 2016, 05:58 PM

I linked two video examples below. The chrome video has the page down issue when I tab, but the IE 11 version does not have the issue.Let me know if there is a preferred method of sending you a video example.

Chrome example: https://vid.me/e/6NSe

IE11 example: https://vid.me/e/Sm9H

0
Accepted
Nikolay Rusev
Telerik team
answered on 10 Feb 2016, 12:11 PM

Hello Brandon,

 

I see what you mean now. This behavior is also caused due to navigatable feature. The reason for it is that the Grid table is the focusable element and when it receives focus the browser performs scroll into view action. There isn't a way to prevent this browser behavior.

 

For IE, where applicable, we are using setActive method instead. It does essentially the same as calling focus, but without the scroll into view part. This is the reason for seeing difference in the browsers.

 

Unfortunately the only thing we can suggest, if you don't like the current behavior, is to disable built-in keyboard navigation and have own implementation for it.

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brandon
Top achievements
Rank 1
answered on 10 Feb 2016, 02:43 PM

Thank you for the suggestion Nikolay.

We will force our users to use IE for this release and consider adding our own implementation after we go live.

Tags
Grid
Asked by
Brandon
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Brandon
Top achievements
Rank 1
Share this question
or