Our state of the art Gantt chart


Post by hugh.dent »

Hi,

Having an issue where when adding a new Task to the Gantt, it sets the index to the selected record's index after saving.
Before Adding a new task:

Screenshot-PreAdd.png
Screenshot-PreAdd.png (7.93 KiB) Viewed 42 times

The Save Request when adding a Task:

Screenshot-AddTaskSaveReq.png
Screenshot-AddTaskSaveReq.png (31.33 KiB) Viewed 42 times

The Save Response when adding a Task (Filtered out for brevity):

Screenshot-AddTaskSaveRes.png
Screenshot-AddTaskSaveRes.png (6.83 KiB) Viewed 42 times

After Adding a new Task (Not letting me add more attachments for some reason):

this.gantt.tasks.map((row) => [row.id, row.name, row.index]) 
Array(4) [ (3) […], (3) […], (3) […], (3) […] ]
​0: Array(3) [ 2635, "Very", 1 ]
​1: Array(3) [ 2658, "New Task", 1 ]
​2: Array(3) [ 2657, "New Task", 3 ]
​3: Array(3) [ 2656, "New Task fdsfd", 4 ]
​length: 4
<prototype>: Array []

I was expecting these to be 1,2,3,4 like the other ones above.
I tried to remedy this initially by explicitly setting it before the request was sent to no avail as i found out later.
When reloading the Gantt in its entirety, this has the correct values.

Is there a reason/way to prevent this from happening?

Kind Regards,
Hugh


Post by marcio »

Hey Hugh,

Thanks for reaching out.

How can we reproduce the behavior you described on this basic Gantt demo? https://codepen.io/marciogurka/pen/qEELzeb .

Best regards,
Márcio

How to ask for help? Please read our Support Policy


Post Reply