Threaded View
-
4 Sep 2007 6:13 AM #1
1.1 Treefilter
1.1 Treefilter
Hi All,
I have a tree of a +2000 nodes about 3 levels deep. It populates fine and quite quickly. I am testing treefilter before decding whether to round trip.
My code:
works except that it only returns top level nodes matching the criteria and their children! So it doesn't find nodes that are below the 1st level.PHP Code:var root = myTree.getRootNode();
var term = txtFind.getValue();
var re = new RegExp(term,'i');
myFilter.filter(re,'text',root);
Am I being stupid and missing something?


Reply With Quote