Data Tree not showing children records on filtered rows
See original GitHub issueWhen a table is setup as a dataTree
, and any form of filter is applied to the data (header, or setFilter()
), the child rows disappear from the parent. Child rows appear when filters are cleared.
Using version 4.3
Reproduced using headerFilter
:
https://jsfiddle.net/dylanjnz/nL7458rj/
Expected behaviour Filtering (as documented) should only affect parent rows, child rows are not filtered, but are available for hide/show on the visible parent rows.
- OS: Mac
- Browser Chrome
- Version 75
Happy to provide more detail, just let me know!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (5 by maintainers)
Top Results From Across the Web
How to filter children in tree structure in Tabulator?
The only option for you is to filter the data outside the Tabulator. const data = [ { level: 0, name: "word1", ...
Read more >How to filter child rows in a tree table - Oracle Communities
Hi all, I have a tree table and I'd like to filter the rows that are displayed when expanding the parent node.
Read more >Custom LWC tree grid Issues - The child rows shown for all ...
I am trying to implement a custom lightning tree grid for one of my requirements. The standard tree grid does not support inline...
Read more >Filter node of treeview with all the child record
i have this problem, i have my treeview and i want to filter one node that i have indicated in a file attached...
Read more >Tree grid filtering to only contain child elements values
I'm trying to use the tree grid filtering and I would like to construct the filter for a column only with the child...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Definitely seems like a bug to me. This does filter, but only if the whole tree matches. ie, if you filter for “AAA” you see:
“Big AAA sub” only shows up because it’s parent has “AAA” in it’s name as well.
Filtering for “BIG” doesn’t return anything, as “BIG AAA sub”'s parent doesn’t have “BIG” in it’s name.
Hey all,
I have just pushed an update to the 4.8 brach to help with this. it should be released in a couple of weeks time.
the new dataTreeFilter option will allow you to disable filtering of the child rows:
Cheers
Oli 😃