HTTP DELETE should don't send and parameters in the body of HTTP request. Instead of that one should append all required options to the URL. See the answer for more information about HTTP DELETE restrictions.
So you should append id to the URL in the form /{id}
or in the parameters form ?id={id}
depend on the server part which you use. For example the following Delete options appends id in the form /{id}
to the main delete-URL "/yourUrl/"
:
$("#grid").jqGrid("navGrid", "#pager",
{edit: false, add: false, search: false}, {}, {},
{ // Delete parameters
mtype: "DELETE",
serializeDelData: function () {
return ""; // don't send and body for the HTTP DELETE
},
onclickSubmit: function (params, postdata) {
params.url = "/yourUrl/" + encodeURIComponent(postdata);
}
});
I recommend you to read the answer for more details.