How can I send jqgrid data by ajax post method to the server?
Question
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.
Solution
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.
OTHER TIPS
post data send to server
jQuery('#list').setPostData(data[]);
remember config jqgrid -> mtype: 'POST',
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow