开发者

How could i get/see the actual data returned to jQGird from contoller?

I have a custom attribute which checks is user i Authenticated and if it is not in such case special json string will be returned. So i need to check for that string in 开发者_运维知识库data which will returned from controller after jQGrid request. How can i do that in jQGrid?

So as i understand i need to get actual response data and check is it contains only my string. Another words i need to get server response data, but i not sure how and on which event i may do that and is it possible at all.

Otherwise if it is not possible i need to call the controller before jJGrid do that to check for that value.


You can place additional information (like the information whether the user is authenticated) in the userdata part of the JSON response. Inside of loadComplete event handler you can use userData jqGrid parameter. See the answer and probably this one.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜