:: Forum >>

how can select a row on press 'enter' key

Hi all,

it's very useful for me. I need all vaules in arow when i am selecting and press enter
jeeva
Wednesday, October 5, 2005
In your other relating post (I think it should be something wrong in your code, as I am getting a correct "selection/index" ).
Anyway you can try with another variant:
var defaultEventHandler = obj.getEvent("onkeydown");
obj.setEvent("onkeydown", function(e){
if(event.keyCode==13){
alert(myData[obj.getProperty("selection/index")]);
event.returnValue = false;
}
else{
defaultEventHandler.call(this, event);
event.returnValue = false;
}
} );
Carlos
Wednesday, October 5, 2005
thanks it's working fine, and i need paging when we use up/down keys.
also i cannot move keys except the first page of records, for this what changes to be made?

thanks in advance
jeeva
Thursday, October 6, 2005

This topic is archived.


Back to support forum

Forum search