We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

'AllExpanded' state not restored after calling updateData

Answered
Ilaria asked on July 1, 2019

Hi,
I notices that if you expand all data using the 'expandAllData' method, the state is not restored after the 'updateData'.
I solved by checking the expanded state of the slice and, if necessary, calling expandAllData right after the 'updateData' but I think this is not the right behavior.
Indeed, if you expand only one node (ore more) or if you use the 'expandData(hierarchyName)' method, the state is correctly restored after the update.
Could you please fix it?
Thank you!
Best regards, 
Ilaria

4 answers

Public
Vera Didenko Vera Didenko Flexmonster July 2, 2019

Hello, Ilaria,
 
Thank you for writing to us.
 
We have not managed to reproduce the issue you have encountered.
 
Could you please modify the following JSFiddle example so that the issue is reproducible: https://jsfiddle.net/flexmonster/hx2rqL1t/?
 
We are looking forward to hearing from you.
 
Best Regards,
Vera

Public
Ilaria July 3, 2019

Sorry,
I forgot to mention that I call a partial update. Here's the updated JSFiddle.
Thank you!
Best regards,
Ilaria
 

Public
Vera Didenko Vera Didenko Flexmonster July 3, 2019

Hello, Ilaria,
 
Thank you for your reply.
 
The issue is reproducible on our end.
 
Our development team will provide the fix for this in the minor release with the ETA 29th of July.
 
You are welcome to contact us in case of further questions.
 
Best Regards,
Vera

Public
Vera Didenko Vera Didenko Flexmonster July 30, 2019

Hello, Ilaria,
 
We are glad to inform you that the issue with losing expandAll option after partial updating with updateData() was fixed.
 
This is included in the 2.7.11 version of Flexmonster: https://www.flexmonster.com/release-notes/.
 
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please let us know if everything works.
 
Best Regards,
Vera

Please login or Register to Submit Answer