Replies: 1 comment 1 reply
-
This is already implemented, but not yet exposed: tree.extensions.filter.filterNodes(filter, options)
I will add it to the tree namespace soon. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Martin,
I am trying to implement a search facility in a treegrid, similar to what is available as a filter already. The main point is that I would not only search in node.title but also in other columns.
(e.g. think of a grid of book related infos including a price column, and the user could enter a search term like price<30)
Is there a way to achieve this with a custom filter callback in the future?
For now I did a quick implementation that uses findAll() and it works reasonably well but the best I can do is select nodes with a match; I cannot hide unmatched nodes.
(the only quick idea I have as a workaround is "patching" titles of matching nodes with special characters and running a filter to only show those)
Thank you!
Cheers
Viktor
Beta Was this translation helpful? Give feedback.
All reactions