Our state of the art Gantt chart


Post by raju1 »

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

  1. gantt.taskStore.allRecords.forEach(task => console.log(task.name, task.parentIndex))
    2.
    gantt.taskStore.filter({
        id: 'filterByType',
        property: 'duration', 
        operator: '=',
        value: 2
    })
  2. gantt.taskStore.clearFilters()
  3. gantt.taskStore.allRecords.forEach(task => console.log(task.name, task.parentIndex))
    Notice that 'Configure ports' task has changed parentIndex from 3 to 0

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


Post by mats »

Looks like a bug yes, we will investigate: https://github.com/bryntum/support/issues/2671


Post by raju1 »

Thanks Mat for your quick revert, Could you please help us with any quick fix till that 4.1.3 release.


Post by mats »

Can't tell you more until we had the chance to investigate this further.


Post Reply