我使用的jqGrid guriddo 5.2.1的jqGrid:editData没有被发送到服务器
我已经按照提供给这些问题的答案:
- jqGrid: sending edit data
- Add additional param to post data using jqGrid when adding new row with modal form
- How to post variable data with editData or onclickSubmit in jqgrid
但我定义的editData没有获取sen t到端点。
这里是我的jqGrid寻呼机定义代码:
$('#jqGrid').navGrid('#jqGridPager',
// the buttons to appear on the toolbar of the grid
{ edit: true,
add: true,
del: true,
search: false,
refresh: false,
view: false,
position: "left",
cloneToTop: false,
mtype: 'POST',
editData: {
mediaPlanId : function() { return mpId; }
}},
// options for the Edit Dialog
{
editCaption: "Edit Item",
recreateForm: true,
checkOnUpdate : true,
checkOnSubmit : true,
closeAfterEdit: true,
errorTextFormat: function (data) {
return 'Error: ' + data.responseText;
}
},
// options for the Add Dialog
{
closeAfterAdd: true,
recreateForm: true,
errorTextFormat: function (data) {
return 'Error: ' + data.responseText;
}
},
// options for the Delete Dailog
{
errorTextFormat: function (data) {
return 'Error: ' + data.responseText;
}
}
);
MPID定义的jqGrid的和jqGridPager功能外,在页面级别。我试着发送1的值,但这也不起作用。我怀疑我错过了一些简单的事情,但我无法弄清楚什么。
你使用的是哪个版本? –
谢谢指出!我更新了这个问题。 –