I have jqrid with multiple columns and rows loaded via JSON. Currently on click of a UPDATE button i am sending all the grid data to server as JSON as below.
$("#updateTradeDetail").click(function () {
var griddata = $("#tradeDetailGrid").jqGrid('getGridParam', 'data');
$.ajax({
url : "${pageContext.request.contextPath}" + "/XXxxxx/tools/updateTrades",
type : "POST",
data: JSON.stringify(griddata),
dataType: 'html',
contentType: "application/json; charset=utf-8",
success : function(msg) {
alert("Response on update " + msg);
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert("Error" + thrownError);
}
});
});
How to send only the specific column values that has multiple rows to the server?