jqgrid学习(1)

grid_id:表格id
options:参数
参数描述默认值
gridModel当为ture我们会使用colModel中的属性构造查询条件,所用到的参数:name, index, edittype, editoptions, search.还有一个参数:defval:查询条件的默认值;surl:当edittype:'select'时获取select数据的url,格式:<select><option value='val1'> Value1 </option><option value='val2'> Value2 </option>…<option value='valn'> ValueN </option></select> false
gridNamesgridModel为true时起效,设置查询列的名称false
filterModelgridModel为false时起效,格式:{label:'LableFild', name: 'colname', stype: 'select', defval: 'default_value', surl: 'someurl', sopt:{optins for the select}}。label:字段显示名称;name:列名;stype:输入框类型,text或者select;surl:获取select数据的地址,要求的内容为html格式:<select><option value='val1'> Value1 </option><option value='val2'> Value2 </option>…<option value='valn'> ValueN </option></select>;sopt:同editoptions  []
formtype定义表单如何被构造,'horizontal' or 'vertical'horizontal
autosearch如果为true:当点击回车键触发查询;当select值变化时触发查询true
formclass可以使用的cssfilterform
tableclass可以使用到table上的cssfiltertable
buttonclass按钮上使用的cssfilterbutton
searchButton搜索按钮Search
clearButton清空数据的按钮Clear
enableSearch启用禁用搜索按钮false
enableClear启用禁用清空按钮false
beforeSearch搜索之前触发的事件null
afterSearch搜索完成之后触发的事件null
beforeClear清空数据之前触发的事件null
afterClear清空数据之后触发事件null
url搜索数据的url‘’
marksearched当为true时,每次查询之后所有查询的列都标记为可查询列true

转载于:https://www.cnblogs.com/Employee/archive/2010/05/26/1744539.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值