Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 jqgrid 中使用内联导航。所以我想添加新行。当我使用此行数据添加新行时,我想传递一些其他外部数据。怎么可能?
您需要使用addParams选项的属性inlineNav。例如,请参见此处、此处和此处的示例。
addParams
inlineNav
更新:以下是代码示例:
$("#list").jqGrid("inlineNav", "#pager", { addParams: { addRowParams: { keys: true, extraparam: { Patient_Id: function () { return $("#sId").val(); } } } } });