Hello,
One possible solution is to serialize the grid data (which should be
posted) as string.
You can use either the JSON.stringify or the build in jqGrid function
xmlJsonClass.toJson
this way you can just simple do (suppose the serialized data is
myserializedgrid)
$.ajax({
url:'some'
dataType:'json'
data:{griddata:myserializedgrid},
...
});

Best Regards
Tony

On 10 Ноем, 17:10, cimodev <cimo...@googlemail.com> wrote:
> Hello
>
> i'm usingjqGridwith the type "clientSide" and plan to send editted
> data back to the server.
>
> With a $.ajax-Request i receive an object with sub-objects as JSON
> from the server and can directly work with them in javascript, e.g.
> add the sub-objects  to the grid, and display other properties in
> input-fields etc...
>
> After the user editted some data within the grid, i will send all data
> back to the server with another ajax-call.
>
> At first, i tried out to send a JSON-Object, but all sub-objects were
> flatten to a string "object [Object]". So i tried out the option
> "processData:false". But with this option the whole POST-Data are
> empty (debugged with firebug).
>
> I'm thinking about putting together all data from the grid as a large
> query-string. But rather i would it do with native jquery-things.
>
> Can anybody give me some hints?
>
> Thanks a lot!

Reply via email to