I suppose that 'status_id'
column contains unique ids which you want to see on the server side in the URL "editStatus"
. In the case you should add key: true
to the definition of 'status_id'
column. In the case the value from the column will be used as the rowid (the value of id
attribute of <tr>
elements of the grid which represent the rows of data). The data, which will be posted to the server during deleting of the row, are described here.
Small remarks to your code. You should replace gridView: true
to gridview: true
, change width: "777"
to width: 777
, remove recreateForm:true
(bacause it's the option of form editing and not the option of jqGrid). If you need set some common values to colModel
like editable:true
you can remove the properties editable:true
from colModel
and uses jqGrid option cmTemplate: {editable: true}
instead. See the answer for details.