1

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.

l2mt
  • 550
  • 2
  • 7
  • 20
  • hmmm, this sounds like a strange approach. Do you really want to send individual rows back to the server, and just resorting to all rows because you can't find how to do one? If so I can help – Bobby Borszich Nov 02 '09 at 23:39

2 Answers2

3

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
  • 6,680
  • 1
  • 44
  • 46
0

post data send to server

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

remember config jqgrid -> mtype: 'POST',

Harry
  • 87,580
  • 25
  • 202
  • 214