I need to get the full json returned by the jqGrid query, how do I?
...
gridComplete: function(data) {
console.log(data); //não funciona
});
I need to get the full json returned by the jqGrid query, how do I?
...
gridComplete: function(data) {
console.log(data); //não funciona
});
The object that the loadComplete receives is a Json with pagination and a rows attribute with the list of returned data. another option for you to take the data is to use the example below:
var data = $("#suagrid").jqGrid('getRowData');
console.log(data );
You can put inside the loadComplete event but remembering that the complete one already takes the data as an argument!