Skip to content
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

wrong selected count #172

Open
xleix opened this issue Mar 27, 2019 · 2 comments
Open

wrong selected count #172

xleix opened this issue Mar 27, 2019 · 2 comments

Comments

@xleix
Copy link

xleix commented Mar 27, 2019

When the parent node is not expanded, androidTreeView.getSelected() cannot get the correct selection when the parent node is checked.

@MaggiWuerze
Copy link

This seems to be a general issue with getting sizes from the tree, root.size is also affected.
I solved it by expanding and then collapsing all nodes before the view gets rendered.
After that you can check the selected.size successfully, but you still need to count your nodes on your own

@OleksandrAndro
Copy link

I had same issue, but in my case it was, when my menu has more than 2 children trees, so I added such block after the line

:
if(n.getChildren().size()!=0){
for (TreeNode m : n.getChildren()) {
getTreeView().selectNode(m, isChecked);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants