Catch data after gridComplete

1

I need to get the full json returned by the jqGrid query, how do I?

...
gridComplete: function(data) {
   console.log(data); //não funciona
});
    
asked by anonymous 27.08.2015 / 15:42

1 answer

2

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!

    
27.08.2015 / 15:55