如何在jqgrig中使用内联导航传递外部数据? [英] How to pass External Data using inline nav in jqgrig?
本文介绍了如何在jqgrig中使用内联导航传递外部数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在jqgrid中使用内联导航. 所以我想添加新行. 当我用该行数据添加新行时,我想传递一些其他外部数据. 怎么可能?
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?
推荐答案
您需要使用inlineNav
选项的addParams
属性.请参见示例此处,此处和此处.
You need use addParams
property of the option of inlineNav
. See examples here, here and here for example.
已更新:以下是代码示例:
$("#list").jqGrid("inlineNav", "#pager", {
addParams: {
addRowParams: {
keys: true,
extraparam: {
Patient_Id: function () {
return $("#sId").val();
}
}
}
}
});
这篇关于如何在jqgrig中使用内联导航传递外部数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文