jqgrid--搜索

基础操作

 

表格中所有的列都可以作为搜索条件。
所用到的语言包文件

 

    $.jgrid = {    
      
    ...    
      
       search : {    
      
         caption: "Search...",    
      
         Find: "Find",    
      
         Reset: "Reset",    
      
         odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'],    
      
         groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ],    
      
         matchText: " match",    
      
         rulesText: " rules"    
      
       }  

 

colModel 设置

可选参数

类型

说明

默认值

search

boolean

是否是搜索

true

stype

string

搜索类型, text 类型或者 select

text

searchoptions

object

对搜索条件进行一些设

 

 

searchoptions 参数

属性

类型

说明

dataUrl

string

只有当搜索类型为 select 才起

buildSelect

function

只有当 dataUrl 设置时此参数才起效,通过一个 function 来构建下拉

dataInit

function

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值