Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141754 | Jan 2,2019 06:35 PM UTC | Jan 8,2019 11:00 AM UTC | JavaScript - EJ 2 | 7 |
![]() |
Tags: Grid |
|
...
rowSelecting: (args) => {
selectedRecordIndex = args.rowIndex;
if (grid.getSelectedRecords().length && !isSpaceKeyPressed) {
args.cancel = true; //to discard selection while navigating
}
}
...
…
document.addEventListener('keydown', function (eve) {
if (eve.keyCode === 32) {
isSpaceKeyPressed = true;
grid.selectRow(selectedRecordIndex); //to select record when pressing space key
isSpaceKeyPressed = false;
}
}) |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.