Re-activate the arrow keys for scrolling after re-draw

Re-activate the arrow keys for scrolling after re-draw

cheryllairdcheryllaird Posts: 1Questions: 1Answers: 0

I have a DataTable instance which retrieves data from the server, it loads 50 rows of data at a time. After each data load (as the user is scrolling down) it re-draws the table.

I have found an issue when scrolling using the arrow keys, that when it gets to row 50 and redraws the table with new data, it looses focus from the table and the down key no longer scrolls the table.

To get the arrow keys working again, I have to physically click back into the table to bring it back into focus.
I have tried to programmatically set the focus back onto the table on draw, using .click() and .trigger('click'), but no luck.

Any ideas how I can programmatically regain focus back on to the table so the arrow keys events work, without having to actually click back in it with the mouse.

Answers

  • allanallan Posts: 63,789Questions: 1Answers: 10,511 Site admin

    Hi,

    Are you referring to KeyTable? If so, what version are you using? The latest release should address these issues.

    If you are still having problems with the latest release, please link to a test case showing the issue.

    Allan

This discussion has been closed.