EasyUI Forum
October 15, 2024, 11:45:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DataGrid keyboard navigation  (Read 3658 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: October 10, 2022, 05:51:38 AM »

in EasyUI for jQuery I was able to add keyboard navigation (up, down, enter) to a DataGrid using this:

Code:
.datagrid('getPanel').panel('panel').attr('tabindex',1).unbind('keydown').bind('keydown', ...

I've tried setting tabIndex={1} on the datagrid, but the onKeyDown still doesn't fire, even after clicking a row to make sure it has focus.  I've also tried tabIndex 0, -1, and 5000 just in case it was a index conflict.  any hidden little tricks to enable this feature?
Logged
chrwei
Full Member
***
Posts: 219


View Profile Email
« Reply #1 on: October 10, 2022, 07:14:13 AM »

I was able to make something work by wrapping it in a div like was suggested for the Accordion header.  is there a better way?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!