New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REACT] StateProvider doesn't keep column sizes or page reload #6618
Comments
@matsbryntse Would it be possible for you guys to commit to having this issue resolved for the next patch version of 5.3 ? |
Yes, we'll try our best! |
Thanks a lot, @matsbryntse |
@jsakalos Thank you for investigating. |
I have attached a video demonstrating the problem with version 5.3.3. |
Thanks for the info, I'll check that too. |
@FlowIT-JIT, so I have finally cracked it. What's going on behind the scene is that columns configuration objects are converted to records for ColumnStore and their ids are auto-generated, if not provided. So when we reload the page, the column ids generation starts at zero. However, when we destroy and re-create the instance, the id generation continues from the previous instance, effectively unlinking the columns from the saved state. The solution is simple: give your columns' configs ids, for example:
and it will work. I will also create a ticket to check whether we could improve the auto-generation of ids logic. |
Replaced by #6646 |
@jsakalos Thank you so much for providing a fix 😊 |
Forum post
Demo attached.
If you move splitter and reload - position will be properly restored. If you resize column and reload - size won't be saved.
Works well in vanilla.
Bryntum-demo-2023-04-18-001.zip
The text was updated successfully, but these errors were encountered: