In my marketplace module Convent Commons there is a section called 'User memory". Have a look, maybe it answers your question. The module is build for version 10 and higher, but you can easyly (re)build the "User memory" part for version 9.
hi,
Yes Mendix DataGrid2 supports persisting column selections per user, but it only does so if you configure personalization properly. The grid itself does not automatically remember selections unless you explicitly set it up.
DataGrid2 has personalization support which can save:
UserGridConfig) with:Now each user will have their own saved grid configuration — refresh and relogin will keep the same columns.
Since the config is stored in a user-linked entity attribute, each user will have their own saved personalization settings. Only that user will see their saved column setup — others see their own.
By default, DataGrid2 personalization stores:
1.Visible/hidden state of columns
2.Column order
3.Column size
4.Sort order
It does not automatically store filter values and filter types unless you configure those filters individually.
There’s no built-in way to persist DataGrid2 column selections per user, but you can implement a relatively simple workaround.
You can hide the default column selector with custom CSS and add your own button that opens a small popup. This popup can list the available columns (for example with checkboxes). Store these column preferences in a persistent entity(you will create) that wraps the DataGrid2. Then bind each column’s visibility in the grid to the values stored in that entity. When the user closes the popup, save their preferences.
By associating this persistent entity with Account, you can support per-user column preferences. This is a high-level approach, but it provides a flexible and reusable solution.