基础操作
表格中所有的列都可以作为搜索条件。
所用到的语言包文件
$.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 |