开发者

Jqgrid advance search, all search operators not displaying in search operator dropdown

开发者 https://www.devze.com 2023-03-26 06:04 出处:网络
Can anybody have an idea that how to populate all search operators like equal to, not equal to, less than, not less then, greater开发者_JAVA百科 than, not greater than, etc etc in jqgrid advance searc

Can anybody have an idea that how to populate all search operators like equal to, not equal to, less than, not less then, greater开发者_JAVA百科 than, not greater than, etc etc in jqgrid advance search operator dropdown????


searchoptions: { sopt: ['eq', 'cn'] }

This line is a property of a column and goes in the definition of a column in the colModel property of the grid:

 $("#MyTable").jqGrid({
 colModel: [
 { name: "outputid", index: "outputid", width: 30, searchoptions: { sopt: ['eq', 'cn']} },
 { other columns ...}
 ],
 otherProperty: ...

You can also set

search: false 

instead and searches will not be allowed on that column.

0

精彩评论

暂无评论...
验证码 换一张
取 消