revogrid icon indicating copy to clipboard operation
revogrid copied to clipboard

Multi filter example

Open pyb0987 opened this issue 3 years ago • 1 comments

Hi guys, first of all, congratulation for this great work.

I'm currently editing my project with this module thanks to you and I wonder if there is an example of using multiple filters. across the columns or not. just an example of a form of 'filterCollection' would be appreciated.

pyb0987 avatar Jun 27 '22 06:06 pyb0987

After days of debugging, here's how to filter a specific column on init of the grid:

     ColumnFilterConfig: {
          multiFilterItems: {"column_to_filter": [ {
              id: 1,
              type: 'contains',
              value: 'string_found',
              relation: 'and',
            }]}
          },

and then define the prop to the component, in Vue:

        :filter="ColumnFilterConfig"

Hope this helps!

Yiidiir avatar Mar 26 '23 21:03 Yiidiir