views:

541

answers:

3

Hi... I haven't found how to send programatically with jquery all the rows in the jqgrid for be processed in the server.

I've only found one method called getRowData(id) but it doesn't helpme because i don't have the id. that's why i want to send all the data

Any help will be appreciated.

+1  A: 

You could use jQuery to traverse the table and get the id for each row.

tmp = [];    
jQuery("#data > tbody > tr").each(function (){
        tmp[this.id] = jQuery("#data").getRowData(this.id);
    });

My table id is 'data' in this case.

txyoji
Thanks... It helps me a lot...
l2mt
A: 

post data send to server

jQuery('#list').setPostData(data[]);

remember config jqgrid -> mtype: 'POST',

quocvinh
A: 

the post below would be a great help to you.

http://stackoverflow.com/questions/1636580/how-can-i-get-jqgrid-to-recognize-server-sent-errors

vearn