bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Add configs to better control how to filter tree nodes #3609

Open matsbryntse opened 3 years ago

matsbryntse commented 3 years ago

Forum post

Include children when a parent matches: https://www.bryntum.com/forum/viewtopic.php?f=44&t=18224&p=92826&hilit=tree+filter#p92826 https://www.bryntum.com/forum/viewtopic.php?f=51&t=18439&p=91121&hilit=tree+filter#p91121

Hide parents of a branch to only return few child leaf nodes: https://www.bryntum.com/forum/viewtopic.php?f=43&t=18184&p=89965&hilit=tree+filter#p89965

Hello, I need some help understanding how filtering works with tree data:

I am looking at the tree demo: https://bryntum.com/examples/scheduler/tree/ I can filter for example Gate 6 (id=10) like this:

scheduler.resourceStore.filter({
                        property : 'id',
                        value : 10,
                        operator: "!="
                    });

How can I filter out the upper level (Gates 6-10 (id=9)) and expect all its children to filter out too?

scheduler.resourceStore.filter({
                        property : 'id',
                        value : 9,
                        operator: "!="
                    });

This doesn't remove Gate 6-10 and all its children and looping through all its children and filtering them out makes the code quite slow.

taauntik commented 7 months ago

requested here too https://forum.bryntum.com/viewtopic.php?p=142621#p142621

taauntik commented 5 months ago

requested here too https://forum.bryntum.com/viewtopic.php?p=146373#p146373