Autoscheduling error

Dear Dhtmlx team,

so, I just implement the auto scheduling feature, but when I turn of auto scheduling of specific task, I got this error when trying to move or resize task


also, how to update the content of the grid, e.g when task auto schedule is off, the icon on the first column of the grid should be thumb-tack, and when auto scheduling is on, the icon should be arrow

regards,
Ikhsan

Hello,

Please, change code in this snippet to reproduce the error.
docs.dhtmlx.com/gantt/snippet/9fe13c28

As for changing content in the grid, you can add icons based on CSS class which is added dinamically by grid_row_class template. Please, check example (new color is added instead of icon):
docs.dhtmlx.com/gantt/snippet/f108af38

Hi Polina,

here is the modified code docs.dhtmlx.com/gantt/snippet/9203214b

I just add this line


var task = gantt.getTask(17);

task.auto_scheduling = false;
gantt.updateTask(17);

now try to resize or move the task, it will trigger the error

Any clue or trick to fix this error?

Hello.
Snippet doesn’t use latest gantt version. It does seems like it works fine on new versions.
You could contact support for new version.