WiceGrid column default filter

I use a WiceGrid gem (that's great!), 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 for a column. eg. A specific logical column may have filtering options for Yes and No, but at the first boot, the default filter can be set to No.

+4
source share
1 answer

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

There is something similar in the controller:

@grid = initialize_grid(

conditions: { you_filter: no }

)
0
source

Source: https://habr.com/ru/post/1598334/


All Articles