Thanks for the reply.
Unfortunately the more i think the more complicated it gets.
Your solution will not work if i want to preserve the column visibility, grouping, filtering, etc
I can use the solution to change the caption - if i go through the model and remove only headerText. At this moment the only problem with the texts is with the Column chooser, on the table itself we are using headerTemplates and the translation works there. With modified solution i can solve the problem with texts only but not with new versions of our application.
(I didn't mention, but we are using the pure JavaScript controls in a ASP.Net Core app. - we've tried tag helpers, but liked more the JS approach)
Maybe i will need to add some version in the stored settings and on change to clear the settings...i will think about this before the next update.
If there is an event before store the settings - it can be used to remove some parts. Or options to specify what to save/load from persistence...
The persistence is great, but is not very usable in multilanguage applications or with applications with regular updates (out the box, with modifications will work great).
At this moment i will add a Reset button (not very user friendly solution) which will add a parameter and refreshes the page - on refresh i will check for that parameter remove the settings (and the parameter itself)...
How can I store the grid settings in a object - is there a method for this?
If I take this object and the one, from the stored settings in the localStorage i can try to merge them on some conditions (changed language, new version,...).
Or is there a method to Rerender the grid - then on reset i can clear the stored parameters and rerender the grid?
Thanks,
George Panayotov