I have a jqGrid on an ASP.Net MVC view. I want to use to pass the value of a hidden text control on the page as an additional parameter to a jqGrid method, when I'm making an in-line edit to a row.
I'm using the postData attribute on jqGrid to do this:
Javascript:
$('#tblLines').jqGrid({
...
postData: {MyId : $('#MyId').val()}
...
}
MVC:
public ViewResult EditModifyLine(string id, string quantity, string MyId)
The problem is it's not getting posted to during the POST that jqGrid makes to the controller for the editUrl. My row values are making it up, but the last parameter MyId is always null. I've checked Firebug and confirmed that the POST is sending up only the first two values.
Any ideas? Is it possible to send up the postData values during an in-line edit on a grid?