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 ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.