Our state of the art Gantt chart


Post by alex.l »

Hi hien.nguyen,

I guess you need to keep an array of tasks in that case and track all of them. We do not have this functionality, you need to implement it yourself.

All the best,
Alex


Post by hien.nguyen »

Thanks,

Can I disable task's color auto change? Because after I change task's color to grey, but if I select other task, my grey task will auto change to normal color.

Best regards.

Best regards.


Post by tasnim »

I tried to reproduce but I wasn't able to reproduce it. It would be better if you could provide us with a runnable test case so that we can reproduce and debug it


Post by hien.nguyen »

Yes, my runnable code is in this topic (in page 2). Please get it. Thanks.

Best regards.


Post by tasnim »

I tried to reproduce it with your demo. I wasn't able to reproduce it with that too.
Please check the video below

Attachments
testing.wmv
(7.18 MiB) Downloaded 31 times

Post by hien.nguyen »

Yes, from your video: I want red task keep in red (no need to change to original color when select other tasks). Just keep it in red.

Best regards.


Post by tasnim »

Ok. To do so, You need to set style instead of class
like this

taskDom.style.backgroundColor = 'red';

Then the style will stay there

Let us know if it works

Good Luck :blush:
Tasnim


Post by hien.nguyen »

Yes, it worked.

Please share me the way to set task to normal color. I tried

taskDom.style.backgroundColor = 'none';

but it not work.

Best regards.

Best regards.


Post by tasnim »

You could set it to an empty string

taskDom.style.backgroundColor = '';

Post by hien.nguyen »

Thanks,

Now I faced new problem: after change color event "sync" occur. I want to disable this event. Please share me the way to disable event sync fired after change task color.

Best regards.


Post Reply