当我创建多个jqGrid时(能够编辑每个jqGrid) 我使用SerializeEditData在将数据发送到服务器之前自定义数据,当它是单个时 网格工作正常, 使用许多网格只触发最后一个SerializeEditData(最后一个jqGrid), 它看起来像是覆盖事件注册问题,是否有人面临这一点? 任何替代SerializeEditData的想法?
for example:
$("#Grid_1").jqGrid('navGrid','#pager',
{/*navGrid options*/},
{/*edit options*/
serializeEditData: function (postdata) {
}
},
{/*add options*/
serializeEditData: function (postdata) {
// your implementation of serializeEditData for add
}
},
{/*del options*/},
{/*search options*/}
);
$("#Grid_2").jqGrid('navGrid','#pager',
{/*navGrid options*/},
{/*edit options*/
serializeEditData: function (postdata) {
//this function is fired
// when trying to send to server from both Grids }
},
{/*add options*/
serializeEditData: function (postdata) {
// your implementation of serializeEditData for add
}
},
{/*del options*/},
{/*search options*/}
);