开发者

jqGrid editurl return value

开发者 https://www.devze.com 2023-02-18 20:40 出处:网络
I cu开发者_StackOverflow社区rrently have a jqGrid that edits data in the database using editurl. How do I do actions after receiving a reply from the server, for example check if the updated succeeded

I cu开发者_StackOverflow社区rrently have a jqGrid that edits data in the database using editurl. How do I do actions after receiving a reply from the server, for example check if the updated succeeded, or a message returned by the server.

if there's no jqGrid function that does this, how then can I go about doing this?


The OP wrote:

solved. API for edit row is as below.

jQuery("#grid_id").jqGrid('editRow',rowid, keys, oneditfunc, succesfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc);

Put the function you want under aftersavefunc, and take in 2 params, the row_id and the response. the response is a XMLhttpRequest Object.

0

精彩评论

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

关注公众号