Multiple Filter Panel from Button Click event to On Control Change

Hello!

I got a Panel with many controls to filter a table

The filters are activated only with a Button "Filtrar" onClick event wich include the filter logic and the query.

Wich is a good way to activate this event automatically when I change any of the controls so I don´t need the button?

The first step is making sure the built-in filters are not enough for your needs. They're quite new, so maybe you won't have them yet if you're using an older version. You can activate them in the configuration for each column. They're quite powerful, so check them out before rolling your own filters.

If they're not what you need, or if your version is too old:

  • make a custom property on your table and bind it to the full data.
  • put a structure binding on your table's props.data, and add a reference to the custom prop holding the full data and each of your filters.
  • browse the data and check each row against your filters.

I gave an example of this yesterday in another thread, I'll see if I can find it

1 Like

Thanks Pascal, looking forward to use the built-in-filters.

Here's the post from yesterday: Perspective table header filter dropdowns - matching column widths - #23 by pascal.fragnoud

Note that I would have used the built-in filters for this project but it was developed on 8.1.17, which is too old for those.

1 Like

Ok thanks, you think is possible to use multiselection with the built-in-filters?

I have no idea, you'll have to try.

1 Like