views:

258

answers:

2

I am using jqgrid with edit cell options. Both methods getRowData and getChangedCells returning [object, Object]. Please help what could be problem.

A: 

It's real hard to know. But when you get an [object, Object] (guessing in a alert) you should use debugger (like firebug) to inspect the object returned.

Please be more specific. And show some sample code.

fredrik
A: 

If you want to look into the result of:

jQuery("#grid").getRowData();

I would suggest including the jQuery JSON library and calling:

alert(jQuery.toJSON(jQuery("#grid").getRowData()));

This will display all of the contents of an object exactly as it exists in your grid. Just make sure that you replace "#grid" with the identifier for your grid.

Pete Amundson