简体   繁体   中英

jqgrid not passing search filter data type on refresh of grid

When loadig the grid for the first time the json data that gets sent to my search method on the server for the filter property has a value of:

{"groupOp":"AND","rules":[{"field":"ModifiedBy","op":"cn","data":"SomeData","type":"text"}]}

But when I click the refresh button on the jqgrid the json data for the filter property is:

{"groupOp":"AND","rules":[{"field":"ModifiedBy","op":"eq","data":"Somedata"}]}

Notice it is missing the type attribute. Does anyone have any ideas on why this might be happening?

If you click on "Refresh" button the value of the filters parameter which should be send to the server should be

{"groupOp":"AND","rules":[]}

If you has another values you should post the code of the grid and describe the use case. If one could reproduce your problem one can either find a bug in jqGrid or in your program.

Which version of jqGrid you use?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM