Default Filter empty in date filter DataGrid 2

0
Question: Data Grid 2 Filter Issue I'm experiencing issues with filtering a Data Grid 2 based on a date attribute. The column contains dates, but I'd like to display only objects with no date set by default. Context: The Data Grid 2 uses a date attribute. I've attempted to apply both the 'empty' and 'equal' filters with an empty value as the default. Error Message/Result: Despite these attempts, the Data Grid 2 displays all objects regardless of their date setting. Example:
asked
2 answers
1

Kevin,

I just tried this out in Mendix 10.17.0 with the most recent Datagrid 2 version installed.  Setting the Default Filter to empty worked in this scenario.  Are you using an older version of DataWidgets module?  If so, maybe upgrading would help.

Mike

answered
-1

To filter a Data Grid 2 to show only objects with no date set by default, follow these steps:

  1. Set Default Filter: In the Data Grid 2 properties, go to the “Filters” section.
  2. Add Filter Condition: Add a filter condition for the date attribute and set it to “is empty.”
  3. Check Visibility: Ensure that the filter is set to apply on page load or when the grid is initialized.

If the grid still displays all objects, double-check that the filter is correctly configured and that there are no conflicting settings or conditions in the grid’s properties.

answered