You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nested-Grids: grid.save() and grid.load() behaviour #2171
A grid is stored as an object using grid.save() for further use. If the same grid is reloaded with grid.load() and then saved again, the object grows recursively, even if no changes have been made to the grid.
This happens with nested grids and gets worse with nested-nested grids (subGridDynamic=true).
This example is based on the original Advanced Nested Grids demo, which has been extended by two textareas - nothing else.
The behavior I described can be understood by multiple save and load attempts and monitoring the content of the textareas.
@adumesny
Thanks for the quick bugfix.
Unfortunately, the save/load behavior of nested-nested-grids has not improved.
Attached an example that does not work (Gridstack demo/doc page):
Activity
adumesny commentedon Jan 16, 2023
good find!
nested grid save() incorrectly re-list children
adumesny commentedon Jan 16, 2023
fixed in next release. don't forget to donate if you find this lib useful!
mbsouth commentedon Jan 17, 2023
@adumesny
Thanks for the quick bugfix.
Unfortunately, the save/load behavior of nested-nested-grids has not improved.
Attached an example that does not work (Gridstack demo/doc page):
adumesny commentedon Jan 17, 2023
not sure what you are pointing to (image doesn't tell me the issue). I already spent more time on this than I have...