-
Notifications
You must be signed in to change notification settings - Fork 132
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
[fdp-table][Sourcing][Dev Blocker] Tree table expandAll and collapseAll concerns and queries #9238
Comments
Can you validate the request with the virtual scrolling (PR)? |
Hi @droshev , we will not be able to validate until we get an rc version for the "Virtual scrolling" , can you please do the needful? |
@I543348 It was merged a week ago. Can you validate it? |
@rayansailanim, can please validate this to see if this is still a concern? We do have to dome optimisation, when dealing with large dataset such has detaching non-visible items out of changedetection and adding back when it is approaching visible area. But there is no needs to keep expanding 2000 items, when they are not visible. |
@rayansailani can you please check this and validate ? |
Have evaluated the |
As of now, there is no way to control if a node is collapsed or expanded. I think the solution should be the same as for the #9355. Now reading again this original description @rayansailani Speed: Does this mean this not an issue anymore? Pragmatically pass expand/collapse state
Are you trying to preserve some state for the user and trying to open up the dialog where he/she left off? |
@fkolar For the question |
Yes this:
|
@fkolar - I'm currently having a use case where there is a tree table with infinite scrolling. I have enabled
Since I had raised a concern regarding this issue initially, would you mind taking a look at this scenario once again. I understand that this issue is now assigned to you for the programmatically expand and collapse functionality. Do I need to create another issue for tracking ? either ways, requesting you to please take a look. Thanks. |
Once the PR for this issue #9355 is merged we can also extend it for this one. With the PR we will allow app to control the check state. This can be easily applied to expand state. But in here we need to see what is the real cause of this. We should definitely look if we can expand item more lazily just before they get to the viewport or check using debug tools what is slow here.
Then we can run I think if its under 10ms we should be ok, but if its over then we can check what causes this performance problems |
@rayansailani , when you say 1000 rows in tree table how this number distributes across rows, nodes, leafs , children, parents , etc. |
@fkolar , will test with a 1000 rows and update the metrics by running a |
@rayansailani can u pls respond ? pls use dummy data to test this. |
Hi @fkolar, created on sample stackblitz to check for 100 rows. I found that there's lot of latency in 100 row itself. please take a look and confirm if that's expected. Thanks. |
The main root cause are several things:
Check if we can:
We need to test this with the |
Update:
Is going to be called number of time depending how many items, children you have, so it can easily get call 100ts+ of times, if you have complex tree structure. |
Hi @fkolar, Thanks for the suggestions. I had observed a response from you on this (#9519) PR. I will try considering something similar instead of Regarding the other suggestions - Thanks. |
|
Update:
|
Update:
|
@mikerodonnell89 , as I was reassigned back to my original team, i will not be able to continue, i think there is no issue with expand all and I introduced PR to show how we can control expand/collapse from the APP, the rest is part of the virtual scroll , which can be called too often. |
@fkolar Yes, the expand/collapse logic for individual rows is working fine (same as checked state). As for the performance issue - noticed there is no debounceTime for the scrolling subscription in
But adding debounceTime causes the scroll position to lunge at the end of a scroll by the user, as shown in the video below. It does this a bit without the debounceTime but i think may be more pronounced with it. So just need to figure a way around this Untitled.mov |
This issue is obsolete as main root cause was on the application side. Once app fix is merged we will evaluate this one more time and log more concrete and targeted issue. This issue was not on the F-NGX side |
Is this a bug, enhancement, or feature request?
bug
Briefly describe your proposal.
The expandAll and collapseAll method provided by the fdp-table is very slow to take effect as tested in stackblitz. It would be a huge bog down when using these methods in the application with 1000's of rows.
Query: If the table data source contains expand and collapse related information that allow the table to be rendered such that some rows are expanded while others being collapsed. Regarding this - Is there a way to programmatically pass the
isExpanded
param to each row ?Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)
0.38.2
If this is a bug, please provide steps for reproducing it.
This seems more like a performance issue or concern with the expandAll and collapseAll functionality. Please refer to the code.
Please provide relevant source code if applicable.
please refer to the video for more information. (link - https://user-images.githubusercontent.com/54993789/212942376-31601e4a-eb46-49da-b58d-1c3e4ea34693.mov)
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: