This example demonstrates how to specify a function to be executed when a data grid row is double clicked. This event is called onDataRowDblClick. Once the event is activated, the function that will be executed for this event will receive 2 parameters: row id and record id.
Syntax: myGrid.onDataRowDblClick = function myFunction(row, recordid);
In this example, a function named onRowDblClick is assigned to the onDataRowDblClick event. When a row is double clicked, an alert dialog will appear with the row information..
function onRowDblClick (row, recordId){
alert('Double Click on row # is ' + row + ' and record id is ' + recordId);
}
Note: The event onDataRowDblClick can be activated before or after the DataGrid object is constructed (through go command).