Here is code my jqgrid editing through form.
$("#DataEnergy").jqGrid('navGrid', '#pagergrid',
{}, //options
{editdata: { id_res: $('#resurs').val(), id_obj: readCookie('id_obj')} },// add options
{editdata: { id_res: $('#resurs').val(), id_obj: readCookie('id_obj')} }, // edit options
{editdata: { id_res: $('#resurs').val(), id_obj: readCookie('id_obj')} }, // del options
{} // search options
);
When editing, the data the editdata must be sent in the post request.
Why is not there why?
First of all you should use correct names of parameters: editData and delData (the case is very important in JavaScript).
The next problem is that the call of
navGridwill be executed once, but you want probably to have the values of$('#resurs').val()andreadCookie('id_obj')at the moment of editing/ading/deliting. To fix the problem you can use function (methods) inside ofeditDataanddelData:For more information see some other old answers: this, this, this, this