24

I have added the search toolbar to my jqGrid and was wondering is there anyway to search certain columns instead of all of them?

By default, the search toolbar shows a search field for every column.

RandomSeed
  • 29,301
  • 6
  • 52
  • 87
Chapp
  • 287
  • 2
  • 3
  • 8

1 Answers1

50

If you define search:false property for the column in the colModel the search toolbar will have no input element for the column.

Oleg
  • 220,925
  • 34
  • 403
  • 798
  • @Oleg this work with last version?. I use `jqGrid('filterToolbar',{searchOperators : true});` and `search:false` in each field I don't show the input and doesn't work – Biruwon Sep 11 '13 at 10:05
  • Shit, I'm using false like a string. Sorry – Biruwon Sep 11 '13 at 10:16
  • @Biruwon: It's no problem. By the way you can use `cmTemplate: {search: false}` to set default value for `search` property. See [the old answer](http://stackoverflow.com/a/6047856/315935) for more details. – Oleg Sep 11 '13 at 11:01