-
Notifications
You must be signed in to change notification settings - Fork 6
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
transformFlatData not compatible with syncDataOnLoad in a tree store #2944
Comments
Confirmed, this is a bug. I have reproduced it in our Grid/examples/tree by setting the store to:
and then in console:
The result is: When |
Some more debug info. The same happens if you start with an empty store and then load a flat dataset. Example:
|
Also reported here: https://www.bryntum.com/forum/viewtopic.php?p=90275#p90275 |
Probably causing #3429 |
The related, but very important issue is that the store does not fire the correct events when this flag is on. Only |
I am not sure if this is a bug or if i'm using syncDataOnLoad on a tree grid in a way that it is not intended to use.
Summary: Render a tree grid with data. Once it is rendered set the store data to an empty array after that set it to array that has data and the flat data is not transformed to a tree.
Component version: Bryntum Grid 4.1.4
Test Case:
`
Steps to reproduce: Once the tree grid is rendered press the "Load Data" button. The loaded flat data is not transformed into a tree.
Expected Result: After pressing the "Load Data" button the data should be transformed into a tree.
What happens: After pressing the "Load Data" button the loaded data remains flat.
Debug info: From what i see there are no errors in the console and if i execute
instead of
the flat data is transformed into a tree. From what i can see it looks like the problem is only if you set the data to an empty array and after data you set it to a new dataset.
The text was updated successfully, but these errors were encountered: