Skip to content

grid.save() and page refresh. Original configuration is lost if save is called in oneColumnMode  #1849

Closed

Description

@andrea-spotsoftware

Subject of the issue

When calling grid.save() in oneColumn mode, for example after grid change, original widgets configuration is not exposed in the resulting JSON config.
We store this config in localStorage.
Then, after restoring the grid in a different session (reloading the page) , loading config from storage, there is no way to deduce the original config, every widget has w = 1 and is misplaced.

Your environment

  • 4.2.5 HTML
  • chrome/win

Expected behavior

The save method should generate a config that can help the grid to reload correctly.

Actual behavior

Calling save in oneColumn mode and storing the result, is resulting in a wrong original widget configuration if loading from localStorage in a following page reload.

Activity

  1. added 2 commits that reference this issue on Oct 16, 2021
    b48172f
    d8b6d25
  2. adumesny commented on Oct 16, 2021

    @adumesny
    Member

    fixed in next release. don't forget to donate if you find this lib useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions