Search Filter is not working as expected


#1
  1. when i am seaching for project name it is filtering the projects but not showing the children of the project i.e task.
  2. And When i am searching for the task it is filtering task but not showing parent i.e project

image in this i’m seachring project but it is not showing children (task)

image here i’m searching task but is not showing parent.

image in general groups look like this.

i am refering this doc for filter


#2

any solution for this ?


#3

Hello Nitish,
This is expected behavior because the onBeforeTaskDisplay event handler processes each task without its parent or child tasks:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskdisplay_event.html

You will need to implement a custom solution by using the Gantt API and Javascript.

Here is an example where the task is displayed with its parents:
http://snippet.dhtmlx.com/94180266e

And here is a different example where the task is displayed with its children:
http://snippet.dhtmlx.com/5/1d16c2963