I need to add additional dynamic parameter to jqGrid’s POST data when I’m adding new record with modal form.
I tried:
$('#table').setPostData({group: id});
$('#table').setPostDataItem('group', id);
$('#table').setGridParam('group', id);
and nothing worked out.
you can use editData parameter of the editGridRow method. In the most cases you use editGridRow not directly, but using Navigator. In the case you can define editData as the part of
prmEditorprmAddof the navGrid:One more option is the serializeEditData, onclickSubmit or beforeSubmit method. See details here and here.