Hi,
How do we capture/handle the keyup and keydown events on IGgrid?
Ignite UI version : 20132.2364
Virtualization : True
We cannot go to any newer version of infragistics because of strict project deadline.
Please let us know with the version of grid mentioned above and virtualization enabled, how can we capture the keyboard keyup and keydown events on grid rows?
Thanks
Kiran
Hello Kiran,
There is no out of the box solution for handling keyboard events in igGrid.
One custom solution is to add "tabindex" attribute to the TR elements of the grid and then handle the "keydown" and "keyup" events manually.
To demonstrate this approach I'm attaching a sample for your reference.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Martin,
This works when multipleSelection within the "Selection" features is set to false.
However for multiselection true we are still not able to capture the key up and key down events.
Attached is the updated sample with multiselection set as true.
Can you please look into this and let us know how to achieve the keyup event with multiselection mode?
Thanks,
I'm attaching a new sample where I handle the igGridSelection.activeRowChanged event and set the focus to the active row.
I'm just checking to see whether you were able to resolve your issue with my latest sample.Let me know if you have further questions regarding this subject.
Best regards,Martin PavlovInfragistics, Inc.
We were testing the sample you sent and implemented the code in our application as well. But since virtualization is enabled, when the last record of first set of data loaded is reached the KeyUp Events stops.
In the attached sample just select first row and then continuously try moving to next row by Down arrow key, when it reaches the record with Product ID 331 the event stops and if I press the down arrow keys the scroll bar alone will move but KeyUp event is not triggered.
Can you please check the attached sample.