howto filter branch and leaf in a treevirtual

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

howto filter branch and leaf in a treevirtual

slah
Hi,
I'm trying to apply a filter to a treeVirtual widget, but I want it to search in both branches and leaves. The filter shoud behave this way:

1. if a branch contains the requested search string then show it with all its leaves.
2. if a leaf contains the requested search string then show it under its branch.

The problem is that when a leaf contains the search string and its branch doesn't contain it then it's hidden.

example: try to type "leaf" in the example above http://tinyurl.com/cw9fvmw, you want see results because the branch "messages" doesn't contain "leaf".

is it possible to do this.

regards
Reply | Threaded
Open this post in threaded view
|

Re: howto filter branch and leaf in a treevirtual

slah
Hello,
here's a solution to the problem described in my previous email : http://tinyurl.com/8l2oyej

Hope someone finds it useful.

Regards