4

I am using the WiceGrid gem (which is awesome!), however I am stuck on something relatively simple and can't seem to find anything in the documentation.

I want to have a default filter on a column. eg. A boolean column defined can have filtering options for Yes and No, but on first load the default filter might be set to No.

Andrew Cetinic
  • 2,805
  • 29
  • 44

1 Answers1

0

You can do this by setting the conditions in the controller. Here is the link: http://wicegrid.herokuapp.com/basics6

In the controller, there is something looks like this:

@grid = initialize_grid(

conditions: { you_filter: no }

)