Hi,
We would like to attain the original parentIndex values after executing gantt.taskStore.clearFilters().
Steps :
Go to https://bryntum.com/examples/gantt/advanced/ and open console to type the following
- 2.
gantt.taskStore.allRecords.forEach(task => console.log(task.name, task.parentIndex))
gantt.taskStore.filter({ id: 'filterByType', property: 'duration', operator: '=', value: 2 })
gantt.taskStore.clearFilters()
- Notice that 'Configure ports' task has changed parentIndex from 3 to 0
gantt.taskStore.allRecords.forEach(task => console.log(task.name, task.parentIndex))
After running clearFilters(), the parentIndex values are still in the filtered state. Is there a separate function that we can utilize to reset the parentIndex values?
Thanks,
Nagaraju