Sending additional variable to server with dataUrl

前端 未结 3 449
后悔当初
后悔当初 2020-12-12 07:15

This should be a simple fix, but I just have not been able to find anything about it.

I am using both postData and editData to POST a variable to the server for

3条回答
  •  自闭症患者
    2020-12-12 07:32

    Inside your grid setup it would be:

    postData: { KeyName: KeyValue },
    

    You will see this extra parameter go out with your POST.

    The example below will set the postData value, (if it was to change) and then trigger a reload of the grid.

    $('#gridName').jqGrid('setGridParam', { postData: { UserName: userName }).trigger('reloadGrid', [{ page: 1}]);
    

提交回复
热议问题