I've implemented my beautiful jqGrid with multiselect rows so I can delete more than one row at a time.
I've noticed, though, that my action method doesn't work to well with the parameters received:
<HttpPost()> _
Function Delete(ByVal id As List(Of Int32)) As JsonResult
End Function
When I use the delete function of jqGrid.
If I change my parameter in a string that is fine. I can split the string trying to find the comma (,) and everything works properly. But I would like to work clean ;-)
I've found this POST and it seems that jQuery 1.4 has changed the way it posts array.
I remember that I had faced a similar situation with an Ajax call passing arrays and the only thing I had to do was to set the traditional parameter to true.
Now, what I can I do to have the same feature in jqGrid?
>` to convert the input string to the list of rowids. MVC 3 must has support of JSON data as the input. In the case you should use `ajaxDelOptions: {contentType: "application/json; charset=utf-8"`}`, then the conversion of the input data will made ASP.NET MVC 3.0 for you directly.
– Oleg Mar 17 '11 at 11:05