Saving Config String for DataGrid2

Hy, I’m trying to save the Config of my DataGrid2 into a Config string. I have a separate Entity with an unlimited String, where the config is goind to be saved. I have a DataView which contains that Object and in that DataView i have a DataGrid2 where the configs are going to be set. In that DataGrid in the Personalization Tab I have the Configuration Attribute set to the unlimited string of the ConfigObject and have the OnChange action set to “Save Changes”. Sadly this is not working and the save event is not getting triggered when I’m setting a filter in the DataGrid2. If someone has any inputs what I’m doing wrong I would highly appreciate it. Best Regards Hannes
2 answers

Hi Hannes,


Have a look at the related question with answers here?:

there are well written accepted answers to this. You probably already found the documentation: 



There are two things you can save:
1) The column configuration (hidden, sort, place)
This is done in the genral Grid2 setup under personalization. As you already did.
It is stored in a unlimited string.
2) The filter settings per column.
These must be set in the filter itself. So double click on the filter and see the personalization.
You need a unique attribute per column, in the same entity as used for the general personalization.
The attribute should fit the type of the column attribute. So column shows a number, then the attribute to save the personalization should also be a number (use decimal, also for integer). Enumeration must be a string.
Just try it out. The drop down in the personalization shows only allowed attributes.
BTW; I create a bunch of attributes in the “saving entity”. String1, String2… no real need to name the attributes related to the attributes in THAT Grid. So you can use the same attributes in any other Grid.