Filter parents without hiding children

Hi,

I want to filter a datasource like this:

0: {taskID:1, taskName:"x1", subtasks:{id:12, name:"Oscar"}}....

I want to filter the parent tasks by taskName:

var obj2 = $("#op_monitoring").ejGantt("instance");
var predicate = new ej.Predicate("taskName", ej.FilterOperators.equal, "", false);
obj2.filterContent(predicate);

Filtering like this the parent tasks are filtered ok by taskName, but the subtasks are hidden because the have not the taskName filtered by. Any way to tell the ejPredicate only filter parent tasks without hiding their subtasks?

Thanks.

3 Replies

JR John Rajaram Syncfusion Team October 3, 2018 12:45 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support. 
We have analyzed your requirement and code snippets. Currently in Gantt there is no support to filter the parent record with corresponding child records. But we have already logged a feature report on “Support for retaining child tasks while filtering parent tasks”. As we are working on many high prioritized features in Gantt, we cannot provide a definite timeline in providing this support in Gantt and this feature will be implement and include in any of our upcoming main release.  
Please let us know if you require further assistance on this.  
Regards,  
John R 



OB oscar bartolome October 10, 2018 06:44 AM UTC

Ok, thanks. Let me know when this gets implemented.


JR John Rajaram Syncfusion Team October 11, 2018 10:33 AM UTC

Hi Oscar, 
Thank you for the update. 
We will let you know once the "Support for retaining child tasks while filtering parent tasks" has been implemented. 
Regards, 
John R  


Loader.
Up arrow icon