I am use inline nav in jqgrid. so i want to add new row. when i add new row with this row data i want to pass some other external data. How it is possible?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You need use addParams
property of the option of inlineNav
. See examples here, here and here for example.
UPDATED: Below is an example of the code:
$("#list").jqGrid("inlineNav", "#pager", {
addParams: {
addRowParams: {
keys: true,
extraparam: {
Patient_Id: function () {
return $("#sId").val();
}
}
}
}
});