I have JqGrid set up as a treegrid, and am retrieving row data via ajax through post requests. Two problems: we use anti-forgery tokens to protect any posts to our site...and we need to send filter parameters back to the server, in addition to knowing what row was expanded (so we can return the next part of the hierarchy tree.)
I can modify postData, but I need to inject multiple values into the list, which can change. I tried setting the grid's dataType to "local", switched it back to "json" once the postData had been modified and triggered a reload of the grid, but that didn't work either (and seems like a hack.)
Is there an event I can tie into that allows me to inject data into the postData immediately before the post is sent? If not, does anyone know where in the jqGrid codebase I should add that? The documentation is rather lacking on stuff like this.
Thanks!