Hi Andre,
I can imagine what you mean as the column filters can be quite in your face. However there is a possibility to hide them by default, and only show them when you click a button, which is explained in the following post. You will have to add a Non-persistant UI entity and some CSS to hide the filters (display:none;) but it's not that hard.
https://community.mendix.com/link/space/studio-pro/questions/128800
For the second part of your comment: this is already built-in functionality. Let's say I use my grid wide filtering to search for a specific name, I will get 2 responses
If I would apply a column filter first, and enter the same text for my grid wide filter, I will only get 1 response
Hi André,
For your specific case I'm not sure if using the grid wide filtering is the best option.
If you want to use drop downs for filtering, I would advise you to use the column filters instead of grid wide filtering. If you place the corresponding filter in your column header you can make the filters you mention with just using the correct data control.
We use both forms of filtering, but for grid wide filtering you should select the attributes you want to filter on in the properties of the widget and make sure sure you are targeting the string value attributes, so for example your enumeration caption. A user can then type out his filter criteria or use the dropdown filters above your columns
F.e. If you want to use a dropdown filter, you can add this directly in your column header.
which will eventually look like this:
HI André Baptista,
Here are some tips how you can achieve this,
To create filters for a Mendix Data Grid 2 widget, follow these steps:
Add Data Grid 2 Widget:
Configure Columns:
Add Filter Widgets:
Set Up Filters:
Remember to adjust the filter settings based on your specific requirements.
For more details, you can refer to the Mendix Documentation on Data Grid 2.1 Additionally, if you need to filter based on user roles, you can set up access rules with XPath constraints to control which data is displayed based on the user’s role 2. Unfortunately, Data Grid 2 does not natively support filtering by associations via dropdowns; you may need to use hardcoded dropdowns or create a filtering entity.... Happy Mendix development!