Paul
Paul

Reputation: 79

how to send the selected row values from jqGrid to server?

I have a grid with multiselect option true...so when I multiselected the rows and click on the button say "Release" it should send those rows to server ...Can any one point me towards right direction?

Upvotes: 1

Views: 2024

Answers (1)

Oleg
Oleg

Reputation: 221997

Inside of onSelectRow event handler (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events#list_of_events) you receive the array of ids of selected rows as a parameter. With respect of getRowData(ids[i]) (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods) you can get full data from the i-th selected row. Then you can construct the from all the data a data which you want to send to server and use jQuery.ajax to send the data to the server.

Upvotes: 1

Related Questions