【发布时间】:2014-11-28 15:31:46
【问题描述】:
我正在使用 jqGrid 和 jqGridRender。问题是:当我在过滤框中键入字符时,我可以自动过滤列中的数据吗? 例如,如果您在页面http://www.trirand.net/demo/php/jqgrid/ 上进行演示“搜索/过滤-> 工具栏搜索与操作”,我想在我输入 ShipName 列时自动过滤行。这可能吗?
【问题讨论】:
我正在使用 jqGrid 和 jqGridRender。问题是:当我在过滤框中键入字符时,我可以自动过滤列中的数据吗? 例如,如果您在页面http://www.trirand.net/demo/php/jqgrid/ 上进行演示“搜索/过滤-> 工具栏搜索与操作”,我想在我输入 ShipName 列时自动过滤行。这可能吗?
【问题讨论】:
是的,你绝对可以。来自以下链接:http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_searching
searchOnEnter:确定应如何应用搜索。如果选项为 false,则当用户按下某个字符时立即执行搜索
$("#orders").jqGrid('filterToolbar',{stringResult: true, searchOnEnter : false});
【讨论】: