I have a table with formatter action to edit and delete row.
In delete action, I want to show a message in the opened dialog with the id of row to delete. So in beforeShowForm event i get the id with:
beforeShowForm: function (form) {
var rowid= $("#lista_operaciones").jqGrid('getGridParam','selrow');
$("td.delmsg", form[0]).html(sprintf(mensaje_borrado, rowid));
},
If I click in the delete button of the selected row, I haven´t any problem, but if i click on delete button of other not selected row i get the id of the selected row.
For example, I have the last row selected, If i click in delete button of the second row, I get the id of the last row.
How I can get the correct id?