如何在查找对话框中按Enter键进行jqGrid搜索

时间:2022-09-20 14:42:04

I have followed the solution here but I have not been able to make it work. I'm using the free-jqGrid version 4.9.0. I don't get any JavaScript errors either. While debugging I see the control just passed over the click method call and nothing happens.

我已经按照这里的解决方案,但我无法使其工作。我正在使用free-jqGrid版本4.9.0。我也没有得到任何JavaScript错误。在调试时,我看到控件刚刚通过click方法调用,没有任何反应。

Would appreciate any help, Thanks

非常感谢任何帮助,谢谢

1 个解决方案

#1


2  

In case of usage free jqGrid 4.9 you need just specify searchOnEnter: true option. You can use searching option of jqGrid to specify searching option used for both searching dialog of searching toolbar. For example

如果使用免费的jqGrid 4.9,您只需指定searchOnEnter:true选项。您可以使用jqGrid的搜索选项指定用于搜索工具栏的搜索对话框的搜索选项。例如

searching: {
    closeAfterSearch: true,
    closeAfterReset: true,
    closeOnEscape: true,
    searchOnEnter: true,
    multipleSearch: true
}

See the wiki article.

请参阅Wiki文章。

#1


2  

In case of usage free jqGrid 4.9 you need just specify searchOnEnter: true option. You can use searching option of jqGrid to specify searching option used for both searching dialog of searching toolbar. For example

如果使用免费的jqGrid 4.9,您只需指定searchOnEnter:true选项。您可以使用jqGrid的搜索选项指定用于搜索工具栏的搜索对话框的搜索选项。例如

searching: {
    closeAfterSearch: true,
    closeAfterReset: true,
    closeOnEscape: true,
    searchOnEnter: true,
    multipleSearch: true
}

See the wiki article.

请参阅Wiki文章。