3.0.5

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
October 5,
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
October 5,
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
October 6,

This topic is archived.

See also:


Back to support forum