How to pass External Data using inline nav in jqgr

2019-03-02 08:48发布

问题:

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();
                }
            }
        }
    }
});


标签: jqgrid