在外部单击时jqgrid关闭对话框

jqgrid close dialog box when clicked outside

此函数使用 jqgrid 打开一个弹出对话框。但是当在外面点击时,即它后面的网页,对话框关闭。如何控制这种情况的发生。我希望对话框显示直到触发关闭事件。

function popupSearch() {
    $("#GridTable").jqGrid('searchGrid', {
        recreateFilter: true,
        multipleSearch: true,
        multipleGroup: true,
        groupOps: [{ op: "AND", text: "and" }],
        closeOnEscape: false,
        closeAfterSearch: true,
        closeAfterReset: true,
        caption: "Advanced Search",
        Find: "Search",
        Reset: "Cancel",
        matchText: "   Find",
        rulesText: " matches",
        searchoptions: { sopt: ['eq', 'cn'] }
    });
}

我通过添加覆盖选项解决了这个问题。

overlay:0