超时错误捕获并显示在jqGrid中 [英] Timeout error catch and display in jqGrid

查看:144
本文介绍了超时错误捕获并显示在jqGrid中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在 jqGrid 中设置任何超时选项以显示错误(如果有)服务器处理发生延迟,是否超过了设定值?

Is there any timeout options I can set in jqGrid to display an error, if any delay in server processing happens, more than a set value?

推荐答案

您可以使用 loadError 事件句柄.此外,您可以使用 $ .ajax timeout参数更改默认超时.要在jqGrid内执行此操作,您可以在菜单中使用 ajaxGridOptions 选项像ajaxGridOptions: { timeout: 60000 }这样的形式.

You can use loadError event handle. Moreover you can change the default timeout with timeout parameter of the $.ajax. To do this inside of jqGrid you can use ajaxGridOptions option in the form like ajaxGridOptions: { timeout: 60000 }.

这篇关于超时错误捕获并显示在jqGrid中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆