Set Url on loadBeforeSend in jqGrid

后端 未结 2 2014
走了就别回头了
走了就别回头了 2021-01-21 07:51

I have a wcf service for a large number of reports that returns json data to my jqgrid. Everything works as expected. However, due to the large number of user inputs for each r

2条回答
  •  失恋的感觉
    2021-01-21 08:26

    I hate answering my own question but this answer provided by Matthew works perfectly. The question is a bit ambiguous but whatever.

    In a nutshell, you need to call an external ajax function from the 'datatype' parameter. Because jqGrid is now loaded (albeit without any data) you can capture the param data from user input (i.e. page 3 of the record set, sort 'desc', etc.) and add it to your json string.

    This makes for a real easy uri route in your service. Hope this helps someone.

提交回复
热议问题