1
votes

I'm looking at this documentation and wonder how do you add additional restful POST data when submitting to the server then remove a jqgrid row when success but not remove row when failed.

http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aform_editing#delgridrow

I also saw this example but I'm not getting it on restful post. jqGrid (Delete row) - How to send additional POST data?

Thanks...

formatter: 'actions', 
formatoptions: {
   keys: false, editbutton: false, 
   delOptions: {
       url: jqgridWebUrl, 
       mtype: 'POST', 
       ???
   }
}
1
How you want to have the URL? You use mtype: 'POST', but write about RESTful services which use HTTP DELETE. Which kind of data you need to send and in which way exactly? - Oleg
I want to send additional restful data like this in HTTP POST method. I'm not using HTTP DELETE method. The value need to be like this --> "WhichJqgridTemplate=Inventory&VehicleId=" $(this).getCell(rowid, 1) . Thanks... - fletchsod
I saw that delData is one way to do it. - fletchsod

1 Answers

4
votes

There are many way to do this. You can use onclickSubmit, use beforeSubmit, use delData or serializeDelData. All the options you should place inside of delOptions.

If you need modify url used during deleting you can use onclickSubmit (see the answer for code example). Other examples you would find in the answer.