Ashish
Ashish

Reputation: 21

jqGrid clientArray

I am trying to use jqGrid clientArray to submit multiple updates at once. (I am trying to update multiple rows in one go).

        onSelectRow: function(id){
            if (id && id !== lastsel) {
                jQuery('#fnlusetaxlistings').saveRow(lastsel, true, 'clientArray');
                jQuery('#fnlusetaxlistings').editRow(id, true, null, null);
                lastsel = id;
            }
        },

This works fine, but I have no idea that how to retrieve clientArray and send it to the server? If anyone can post an example of sending clientArray to server, it will be very helpful.

Thanks, Ashish

Upvotes: 2

Views: 4944

Answers (1)

Oleg
Oleg

Reputation: 221997

There are no "clientArray", but there are 'data' parameter which is object with all local data. See this or this answer for examples.

Upvotes: 4

Related Questions