Take data after gridComplete

Asked

Viewed 152 times

1

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

...
gridComplete: function(data) {
   console.log(data); //não funciona
});

1 answer

2


The object loadComplete receives is a Json with paging and an attribute Rows with the returned data list. 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 already receives as argument the data!

  • vlw help me right!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.