限制在jqgrid中添加搜索选项 [英] Limit adding search options in jqgrid

查看:94
本文介绍了限制在jqgrid中添加搜索选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究jqgrid功能.在jqgrid中进行多重搜索时,连续单击"+"按钮,将无限增加搜索选项卡的数量.有什么方法可以限制搜索行的添加吗?

I was working on jqgrid functionality. In multi searching in jqgrid, on clicking '+' button continuously, the number of search tabs will be added infinitely. Is there any way to limit the adding of search rows ?

推荐答案

在存储限制后,可以使用afterRedraw回调计算规则的数量并禁用"+"按钮.如果按钮数量少于限制数量,则应启用"+"按钮.有关更多详细信息,请参见答案.

One can use afterRedraw callback to calculate the number of rules and to disable '+' buttons after the limit is archived. If the number of buttons less then the limit one should enable '+' buttons. See the answer for more details.

这篇关于限制在jqgrid中添加搜索选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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