RubbleFord
RubbleFord

Reputation: 7636

jqGrid toolbar filtering with a custom formatter

I've looked at the documentation for toolbar filtering, and in a couple of places I've needed to use a custom formatter in order to display images inside a cell.

With a custom formatter in place I don't get a toolbar filter is there anything I can do about this.

Upvotes: 0

Views: 5828

Answers (1)

Oleg
Oleg

Reputation: 221997

You can define the stype:'select' and the searchoptions with the value or dataUrl for the column where you use the custom formatter:

stype:'select', searchoptions:{value:'...'}

then in the searching (including the searching toolbar) you will have dropdown list. So you can use your custom formatter to display the values in the cells and use standard select formatter in the searching toolbar.

See the demo: enter image description here

Upvotes: 3

Related Questions