TreeGrid: programmatic filters on different levels

Hello,

I have a TreeGrid with 2 columns. I want two programmatic filters :

  1. one to filter the first column on the level 1
  2. one to filter the second column on the last level

How to do this ?
Is there a way to define the filter function to use when calling filterBy ?
Or can I specify the filtrationLevel when using filterBy ?

Thank you,
Barth

Answering myself :
The function filterBy can take a function as second argument.

docs.dhtmlx.com/grid__filtering.html