-
Notifications
You must be signed in to change notification settings - Fork 183
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
Show children after filtering #138
Comments
Could you try if https://github.com/khan4019/tree-grid-directive#expanding-tree-after-search fits your needs? |
That isn't, what i am looking for (i already use it). It just defines, if parent nodes are expanded when searching for a child node but it. |
Hmm... Ah, I think now I understand what you like to do: you want to display child nodes that don't match the current filter, but their parent do? Without changing the code you could try following:
That should work. I used this "hack" for searching hidden data inside my nodes (had a title, short description, long description but only title was visible - but wanted to search all three) |
Do you have an example? I'm not sure, if i understand that correctly or how that could work to achieve this. |
Hope you get the idea^^ |
Okay, that could be an idea. But it fails when having this:
When now searching for To make this work properly (without changing the directive), i would have to concat all parent properties into a single string and add it as new property to the children. Correct? |
Yes, that would be the way to go. Currently the search works as a filter for ng-repeat, so every node that doesn't fit the filter criteria is discarded - so will be the children in your case. Changing this behaviour would need a bigger rewrite... |
Currently, nodes are shown until the matching node.
But if the matching node is a node with children, it appears to be expandable but it isn't. Nothing happens when clicking the expand icon. That's possibly some kind of a bug. However, displaying the children could be absolutely intended (as it is in my case, for example).
So i would ask you to implement the possibility to (optionally) display the children of a found parent node.
The text was updated successfully, but these errors were encountered: