I need to know how to send fields before a delete in jqgrid, to add is easy I have a script for that, but for delete I can't.
here a example to add:
{//add
recreateForm:true,
jqModal:true,
reloadAfterSubmit:true,
savekey: [true,13],
closeOnEscape:true,
closeAfterAdd:true,
height:150,
width:450,
url:"process/jqgridAnaOT.php",
addCaption : "Asigancion de Analista",
beforeSubmit:function(postdata){
var dataString = $("#formid").serialize();
var numReg = document.getElementById('OT').value;
var assign = document.getElementById('Siglas').value;
var txt_open = document.getElementById('txt_open2').value;
if(txt_open==0){
jAlert('La orden se encuentra cerrada, No es posible modificar datos',titulo);
return false;
} else { ...
} },
as you see, to add we have a form which we are able to manipulate the data in, the function beforeSubmit allows us know data in the form, but when we delete a row it does not exist in the form if not a message from jqgrid.