in my grid I would like to have a multiple selection, but I want only the actually double clicked row to be used in a certain event. So, getSelectedRows() couldn't do the job (at least used alone).
Any ideas?
in my grid I would like to have a multiple selection, but I want only the actually double clicked row to be used in a certain event. So, getSelectedRows() couldn't do the job (at least used alone).
Any ideas?
Share Improve this question asked Dec 12, 2016 at 11:19 Igino BoffaIgino Boffa 4512 gold badges7 silver badges26 bronze badges1 Answer
Reset to default 14Are you looking for the event rowDoubleClicked?
https://www.ag-grid.com/javascript-grid-events/
It's used like so:
gridOptions = {
onRowDoubleClicked: doSomething
}
function doSomething(){
alert('I did something')
}
The even will also pass the row data if you want to use that in the function:
gridOptions = {
onRowDoubleClicked: doSomething
}
function doSomething(row){
console.log(row);
console.log(row.data);
}