Event handler problem in IE
Hello EveryBody,
I am displaying grid and by default i am selecting first row using setSelectedRows([0]) method.Now i am attaching event handlers to the grid using setEvent method.I want to execute some functionality when i press enter in any row of the grid. It is working fine only,we I click on any row and press enter.After loading the grid, if i won't click on the row and if i press enter it is not working.My question is cann't it take the row selected using setSelectedRows([0]) as default row and execute the functionality by pressing enter key.
ie: event handlers are not working without clicking on any row.
I am using the following code for event handlers.
var myKeyEventHandler = function(){
alert();
}
obj.setEvent("onkeydown", myKeyEventHandler);
I am displaying grid and by default i am selecting first row using setSelectedRows([0]) method.Now i am attaching event handlers to the grid using setEvent method.I want to execute some functionality when i press enter in any row of the grid. It is working fine only,we I click on any row and press enter.After loading the grid, if i won't click on the row and if i press enter it is not working.My question is cann't it take the row selected using setSelectedRows([0]) as default row and execute the functionality by pressing enter key.
ie: event handlers are not working without clicking on any row.
I am using the following code for event handlers.
var myKeyEventHandler = function(){
alert();
}
obj.setEvent("onkeydown", myKeyEventHandler);
VaraPrasad
July 19,