开发者

getChangedCells is returning [object, Object)

开发者 https://www.devze.com 2022-12-20 01:15 出处:网络
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 g

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

精彩评论

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