question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data Tree not showing children records on filtered rows

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
takuycommented, Aug 11, 2019

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:

AAA Education Inc. [LDKM-2018] [1234-IMP] :: 135
    BIG AAA sub :: 142
AAA Hospital [PO1234567] :: 54

“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.

1reaction
olifolkerdcommented, Aug 23, 2020

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:

var table = new Tabulator("#example-table", {
    dataTree:true,
    dataTreeFilter:false, //disabled child row filtering
});

Cheers

Oli 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found