jQuery UI Widgets Forums Grid Columns badly reordered after at the first autoloadstate

This topic contains 1 reply, has 2 voices, and was last updated by  TP_DTNA 8 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • jfv
    Participant

    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


    TP_DTNA
    Participant

    I had a similar problem that was due to my using the same DOM id’s on different pages on the same server. Because the autosave/load feature stores keys using those names, I was having a conflict that was messing with my column orders. Would be nice to have a fix for that instead of the usual “save and load the state non-automatically” answer.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.