-
Notifications
You must be signed in to change notification settings - Fork 63
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
Override scrollToIndex(number) in TreeGrid #3505
Labels
Comments
Any updates on this? |
8 tasks
We need to implement the Flow counterpart of the logic introduced in the
|
Also
|
9 tasks
9 tasks
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your motivation
TreeGrid
inherits thescrollToIndex(int)
method fromGrid
but some complications arise from this. The complete structure of the Grid is needed to properly calculate how to scroll to an item using its index. One example is a node at index 3 with 5 children is expanded, the following node (previously at index 4) would move to index 9. When collapsed, the node at index 9 would move back to index 4.Describe the solution you'd like
We need to provide a reliable method that can consistently scroll to any item using its index. The tree should be traversed in a pre-order traversal manner.
Describe alternatives you've considered
Making it possible to only scroll to root nodes. I'm not sure if this solution would work if any node is expanded since we would probably face the previous issue of having a node's index change when previous nodes are expanded or collapsed.
The text was updated successfully, but these errors were encountered: