Although I was able to add my own message data programmatically, I cannot figure out how to get this code to send _search: truein the request.
var data = grid.jqGrid("getGridParam", "postData");
data._search = true;
data.searchString = id.toString();
data.searchOper = "eq";
data.searchField = "userid";
grid.jqGrid("setGridParam", { "postData": data });
grid.trigger("reloadGrid");
Fields are added correctly, but somewhere along the _search path it turns out to be false, because each request is false. Is there another thing I have to do to make it “true”? I run a search on the toolbar, but most of the time when this code is called, nothing is entered, and a decent piece of utility code on my server checks _search before processing the requests.
Groxx source
share