jqgrid中的搜索对话框

时间:2014-03-18 09:10:41

标签: jqgrid

我在jqgrid中使用搜索对话框。搜索属性设置为true的列将出现在搜索对话框中。我们在JQGRID的搜索对话框中只有列名而不是选择下拉列吗?

1 个答案:

答案 0 :(得分:1)

在寻呼机中添加这些行

 jQuery("#list").jqGrid('navGrid', '#pager',
              { edit: false, add: false, del: false, search: true, refresh: true },
              {},
             {
             },      
             {  
             },
             {
                 multipleGroup: true,
                 closeOnEscape: true,
                 caption: "Search...",
                 multipleSearch: true,
                 Find: "Find",
                 Reset: "Reset",
                 odata: [{ oper: 'eq', text: 'equal' }, { oper: 'ne', text: 'not equal' }, { oper: 'lt', text: 'less' }, { oper: 'le', text: 'less or equal' }, { oper: 'gt', text: 'greater' }, { oper: 'ge', text: 'greater or equal' }, { oper: 'bw', text: 'begins with' }, { oper: 'bn', text: 'does not begin with' }, { oper: 'in', text: 'is in' }, { oper: 'ni', text: 'is not in' }, { oper: 'ew', text: 'ends with' }, { oper: 'en', text: 'does not end with' }, { oper: 'cn', text: 'contains' }, { oper: 'nc', text: 'does not contain' }],
                 groupOps: [{ op: "AND", text: "all" }, { op: "OR", text: "any" }],
             }
             );