Filter button table toolbar not working

I have this table and I added the filter option in the toolbar. But it doesn't do anything. Even though I have set a filter on the table using another component (multiselect, search input and date range). These filters work fine. Just that filter button doesn't do anything. I guess I have to add an event handler.. but what? I thought there would be something like "display filter stack".

Screenshot 2024-10-12 at 15.46.09

1 Like

I have run into this bug a few times, I am assuming you are looking for it to open this that lists the active filters? You could add another table into you app and test the default table filter button and maybe just migrate over each filter one at a time to test which one is causing error. Keep me posted!

I hope there’s another solution :joy: that’s going to be a lot of work. That app is build on that table. Everything has to be done again.

Edit:
I’ve added the bug tag. Hopefully someone from Retool can look at it and report the bug to the dev team :crossed_fingers:

Oh yeah haha definitely don’t do that then. Hopefully it’s resolved soon. The only thing I can think of is using a test table to find the culprit but not migrating anything over.

Hi. If you do server side pagination then Filter is not available.

It’s client side though. I found it easier to have only certain filters affect server side. Filters you don’t change often and limit the results by half for example. Like archived = true / false

Hi @Steven_W! From your screenshot, it looks like you're using a "custom" type for the Filter button. This will just add a plain button that you can attach event handlers to.

Try changing the button type to "Filter" to take advantage of the built-in filter functionality:

2 Likes

thanks! how did I not notice that :man_facepalming:
too busy with the custom tabs that I forgot the other buttons are predefined.

1 Like

No problem! Glad it was an easy fix :smiley: