angular-gantt / angular-gantt

Gantt chart component for AngularJS
https://www.angular-gantt.com
MIT License
1.42k stars 486 forks source link

Unable to filter based on parent row when used "keep-ancestor-on-filter-row" as true. #562

Open sidd06 opened 8 years ago

sidd06 commented 8 years ago

Hi, My requirement is to get parent row with all children when looking for parent row and vice-versa. Using "keep-ancestor-on-filter-row" getting parent with child if filtered for child but not getting all children if filtered for parent row.

In my data model using "parent" attribute to address a child to its parent as I have redundant children like -

{
    "data": [
        {
            "projname": "xyz",
            "projid": "189",
            "from": "2015-10-05",
            "to": "2015-12-25"
        },
        {
            "empname": "zzz",
            "empid": "16",
            "parent": "xyz",
            "tasks": [
                {
                    "name": "aaaa",
                    "id": "1",
                    "from": "2015-11-02",
                    "to": "2015-12-08"
                }
            ]
        },
        {
            "empname": "bbbb",
            "empid": "61",
            "parent": "xyz",
            "tasks": [
                {
                    "name": "cccc",
                    "id": "8",
                    "from": "2015-10-05",
                    "to": "2015-12-15"
                }
            ]
        }
    ]
}

Please suggest how can I achieve it.

deifos commented 8 years ago

Did you find a solution for this?