BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
|
...
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;
}
}) |