Filterbyall dont work with tabview

I have two tabs and each tab has one datatable, I set a value for the filters when starting the datatables the first tab correctly executes the filterbyall in the datatable but as the second tab is hidden.
when I click on the tab to show the datatable it does not execute the filterbyall even with the value set.

Thank you very much for your answer but i use serverfilter and even using your snippet the second tab does not filter.
I set the filter value and it doesn’t execute when I change tab

Hi @Tarcantos ,
To make filterByAll work for both tables you should apply this method for both tables. And the filter should be registered for both tables as well. Please, check the snippet: Code Snippet

@Tarcantos could you, please, share your example?