tabulator: Data Tree not showing children records on filtered rows
When 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!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (5 by maintainers)
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 đ
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.
@supportdesk-si how about the code below?
Oli,
As always, thank you for coming back on this issue. Give me few moments to set this up and I will post here.