Dear JQWidget team,
I have an issue using the save/load state feature in the following case:
my program is building on the fly, the structure of the grid using a json description sent by a server side. So I can create my grid dynamically and it’s working fine.
I want my users to store their own preferences (column order and width, page index, filters, etc if they wants to change something. So I have activate the flages ‘autosavestate’: true, ‘autoloadstate’: true, to do it.
The issue is at the first load (so user has never load the page), columns a re not ordered as describes dynamically in json returned by server. Then when user is closing the page, the state is stored and reload the next time.
If columns are manually reordered, it’s correctly saved and reloaded.
I have a lot of columns and then can’t ask to all my users to reorder it manually, the only way to fix I can imagine is to check if a cookie is present on the client side, if no, unactive the autoloadstate, then display the grid, and create the cookie. The next time, the order may be ok.
Thanks for all your ideas,
BR,
jfv