Save Default Filter in DataGrid 2

0
Hey Mendixer,   is there a way to save the Default Filter in a Datagrid 2 ?  ( like equal, not equal , starts with , smaller then etc?)   Thanks for any Advices Best Regards
asked
1 answers
0

Solved with a Workaround juhu

 

  1. add a DropDownContainer to the DataGrid 2 Header
  2. add 11 Link Buttons in the Container with Caption ( Equal, not equal, starts with etc.)
  3. add 11 Text Filters and set the Default Value and Adjustable by user to false ( 1 Filter with Default Value Equals, 1 Filter with Default Value not Equals and so on… )
  4. Make a Enum Attribute in your User Object with all the 11 Filters
  5. Foreach created Link Button, create a Microflow to set the current Filter in the EnumAttribute..

        6.set a Visibility to every Text Filter

 

The Output looks like this:

 

 

 

So, when you click on “Ends With” only the Filter with Default Value “Ends with” is visible and when you come back to the Page the same filter is active again.

Please let me know if there is maybe an another, easier solution too to save the default filter.

 

Best Regards

answered