如何使整个jqGrid禁用/只读 [英] How to make an entire jqGrid disabled/readonly

查看:587
本文介绍了如何使整个jqGrid禁用/只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用/禁用整个jqGrid?

How can I make an entire jqGrid disabled/readonly?

我有一个带有逻辑编辑部分"的页面,当用户选择要编辑的内容时显示该页面,而当用户完成编辑(保存或取消)时隐藏该页面.显示编辑部分时,我禁用了页面上的其他几个元素.我想禁用其在jqGrid中单击的功能,以使它们无法更改选定的行,重新排序等.但是我无法找到一种方法来禁用/启用整个网格.

I have a page with a logical "edit section" which I show when the user selects something to edit, and hide when the user is done editing (save or cancel). While the edit section is shown, I disable several other elements on the page. I would like to disable their ability to click in the jqGrid, so they can't change selected rows, re-sort, etc. But I cannot find a way to disable/enable the grid as a whole.

很抱歉,如果这个问题已经得到解决-其他问题似乎集中在仅禁用jqGrid内的某些行为.

Apologies if this has been answered already - other questions seemed to focus on disabling only certain behaviors within the jqGrid.

编辑:最好,我希望这种方法不依赖于另一个第三方插件.当然,他们没有错!但是我的客户对他们有些不情愿,因此使用纯粹的jQuery/jQueryUI/jqGrid解决方案会使我的生活变得容易一些. :)

Preferably, I'd like an approach that isn't dependent on yet another 3rd-party addon. Nothing wrong with them, of course! But my client has a degree of reluctance with them, so my life would be a little easier with a purely jQuery/jQueryUI/jqGrid solution. :)

推荐答案

您可以使用 blockUI 阻止网格.

这篇关于如何使整个jqGrid禁用/只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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