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.
精彩评论