In a datagrid/templategrid you can use the standard search option with ‘Allow multi-select’ ticked yes. This allows you to filter down to the enums you'd like to use.
In a listview you can use the text box search from the listview controls widget which works the way your example states.
Check the documentation: https://docs.mendix.com/refguide/drop-down-search-field