Our state of the art Gantt chart


Post by shaxo »

Hello,
After upgrading from gantt v5.3.0 to gantt v5.3.5, we are currently facing an issue.

To give some context, we are using both your gantt (v5.3.5) and your scheduler (v5.3.0) in our application.
This issue appears once adding columns or adding resources to a task, when trying to reload the page, the page crashes and throw the exception you can see in the attachments.

Do you have any ideas/clues on what could be causing this issue ?

Thank you.

Attachments
logs
logs
Capture d’écran 2023-05-23 201757.png (29.19 KiB) Viewed 113 times

Post by marcio »

Hey shaxo,

Are you able to reproduce that error in one of our demos?? If not, could you share your configuration for us to check? Perhaps create a sample project based on one of our demos and share it here for us to check?

You can see more info on our guidelines here viewtopic.php?f=1&t=772

Best regards,
Márcio


Post by shaxo »

Hi thanks for your quick response,

after a lot of tests, it seems i was providing a null date as "endDate" within ProjectModel. providing an actual date seems to fix the issue.

It brings another question, is it possible to ZoomToFit on load ?

Thank you,


Post by tasnim »

Glad to hear that you've got it fixed.

is it possible to ZoomToFit on load ?

Yes, sure. You could apply https://bryntum.com/products/gantt/docs/api/Scheduler/view/mixin/TimelineZoomable#function-zoomToFit method inside of https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-load event

gantt.project.on('load', () => {
    gantt.zoomToFit({
        leftMargit : 50,
        rightMargin : 50
    })
})

I hope this is helpful.
Please let us know if you have any other questions.


Post by shaxo »

Thank you :)

everything is working fine now.


Post Reply