开发者

getChangedCells is returning [object, Object)

I am using jqgrid with开发者_如何学C edit cell options. Both methods getRowData and getChangedCells returning [object, Object]. Please help what could be problem.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜