asp.net mvc - jqGrid + jQuery 1.4: POST data forcing traditional = true in the ajaxSettings when deleting -


I have implemented my beautiful jqGrid with multilevel rows so that I One time to remove
I have seen, however, that my verb method does not work well with the standards obtained:

  & lt; HttpPost () & gt; Delete the _function (Inventory ID as List (Init 32's) as JsonResult End Function   

When I use the deleted function of jqGrid.
I I change my parameter in the string, okay, I can split the string trying to find a comma (,) and everything works properly. But I would like to work cleanly ;-) - I got it and it seems The way that jQuery 1.4 changes the post array Ia I remember that I had to set a faced a situation in which Ajax calls passing through Elajhon and correct me traditional parameters for only one thing. Now, what can I do to get the same facility in jqGrid?

Delete support ajaxDelOptions parameter that you $ .jaxgrid

  $ ("# myGrid") can be used to change the options used. Define settings for JqGrid ('navGrid', '' #pager '', {/ * navGrid option * /}, {/ * editing options}, {/ * add options}, {// delete now dialog Do: Reload "post", now submit: wrong, ajax del option: {traditional: true}});   

Instead you

  $ Can use expansion ($ .jgrid.del, {ajaxDelOptions: {Traditional: true}});   

To change the default option used by jqGrid.

Comments