alert(RowIndex) on Keydown 'Enter'
Can anyone explain how you make an alertbox displaying the rowindex then pressing the Enter key on the selected row?
Lasse
March 8,
var defaultEventHandler = obj.getEvent("onkeydown");
obj.setEvent("onkeydown", function(e){
if(event.keyCode==13){
var rowid = obj.getSelectedRows()
alert(rowid);
event.returnValue = false;
}
else{
defaultEventHandler.call(this, event);
event.returnValue = false;
}
} );
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021