Your current approach might work adequately for grids with a large number of root, level 0, nodes and relatively few leaf nodes for each root.
However I am trying to show the files structure of a video recorder and I only have a single root node, multiple sub directory nodes and potentially hundreds of leaf nodes (recordings).
With your current filter approach every search would return either the entire tree or nothing while I need something closer to Windows file search showing the path to just the matching items.
As an interim step between current processing and my desired result could you consider not expanding the nodes that don’t have ‘black’ in any of their offspring. This would give a more compact result.
When searching in tree we return the the full tree node which contain black.
This is standard in tree searching.
See another such components to see it in action
Kind Regards,
Will
What is the expected result when using the example?
Like the other posters I don’t think the example is working
I either see the full tree with no indication of which rows include the matched lines, or I see a totally empty grid if I enter a term that doesn’t exist.
After searching for ‘black’ I would expect to see the rows that include black, their parents (and possibly children) but extraneous nodes should be hidden
eg when filtering for black I expect to see
1
2
3
4
5
6
ELECTRONICS0.000
TELEVISIONS0.000
TUBE0.000
26" TV 200.00 1 black
30 "TV350.002black
I do not expect to see
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LCD0.000
Super-LCD42" 400.00 10 all
PLASMA 0.00 0
Ultra-Plasma 62"440.002silver
Value Plasma38"312.000silver
PORTABLE ELECTRONICS0.000
MP3 PLAYERS0.000
FLASH0.000
Super-Shuffle1gb20.0011all
5GbFlash0.000
10Gbflash0.000
Power-MP3128mb123.002withe
CD PLAYERS0.000
Porta CD10.000
CD Togo!110.0011
2WAY RADIOS0.000
Family Talk360200.0015
since they are not parent or children o
This reply was modified 8 years, 11 months ago by MymsMan.