Datagrid filter based on dropdown options?

I’m using the (new) datagrid element to display data. One column is of type “custom” and contains a dropdown element. I want to filter this column based on the existing values in the dropdown - how can this be realized? I only see the filter options contains, equal, starts with, etc..?!

You can run the filtering on your backend - whatever collection fills the datagrid element just have that pre-filtered. If you are selecting an item from a dropdown and using that as the filter criteria then save the selected value to a variable, don’t rely just on the current value of the dropdown element

Thank you for your reply, @Matto

Not sure if we are talking about the same: I don’t see how backend filtering can be of help here. So here is an example: there is a datagrid column of type custom, containing a dropdown which has three options: positive, neutral, negative. I want to use the datagrid column filters to filter for one of those three options. Right now, I can only filter by contains/equal/starts with and so on. What I want though, it to be able to filter by positive, neutral, negative (without having to type in those options each time). With backend filtering I would only be able to display one option - but this is not what I want.

Hi Julian :waving_hand:,

you can customize your filter quite a lot.

You can read more about it here: Data Grid | Documentation

I’ve also had some success by asking the AI to help me come up with a specific filter as well.

Thanks for your answer, @Agustin_Carozo

Unfortunately those advanced filtering techniques do not apply to columns of type custom, so this does not solve the issue (even if, the provided filtering options are still the same and cannot be customized apparently). Or is there another way to add a dropdown element in a column, besides using column type custom?