jqGrid多个过滤器和搜索选项

时间:2011-06-30 16:11:26

标签: search jqgrid

我们有这个网格允许多个过滤搜索:

$("#"+gridId).jqGrid({
    colNames: ['A', 'B'],
    colModel :[
    {name:'a', index:'a', stype:'select', search: true, searchoptions: {sopt: ['eq','ne'], dataUrl: '/api/A'}},
    {name:'b', index:'b', stype:'select', search: true, searchoptions: {sopt: ['eq','ne'], dataUrl: '/api/B'}}
    ],
    pager: '#div-pos-pager',
    loadonce: true,
    ignoreCase: true
}).navGrid('#div-pos-pager', {search:true, edit:false, add:false, del:false, refresh:false}, null, null, null, searchOptions);

搜索效果很好,但有一个问题:

  • 单击工具栏中的搜索按钮
  • 您选择按B列搜索,B列的数据选项显示
  • 然后单击B搜索行旁边的减号
  • 现在您有一条线已经选中了列A但列B的搜索选项仍然列出

周围有吗?那么您会看到使用A的搜索选项选择了A列?

0 个答案:

没有答案
相关问题