Our state of the art Gantt chart
Hello,
I am working on the migration of ExtJs Gantt to Bryntum Gantt but facing some issues.
I need to load the tasks and dependencies through API, it loads the tasks properly for the first time, but does not load it if I reload the same data.
Also, it does not load the dependencies even if it has loaded the tasks.
I have attached a screenshot of the code I am using to load the data.
Could you please let me know if I am missing something here ?
Thanks a lot.
-
Attachments
-
- TasksNotLoading.PNG (43.88 KiB) Viewed 775 times
Hello.
I tried on our latest advanced demo, it works perfectly. How do you tell tasks are not loaded 2nd time? Can you reproduce this problem locally on gantt advanced demo?
Hello Maxim,
Thanks for you reply.
I am loading the tasks on click of a button.
I'll try to reproduce it in demo project, meanwhile could you please confirm if the code I have shared, looks fine to load the tasks ?
Yes, the code looks good. In the snipped above you use hard-code inline data what does not reach to the server in the loadCrudManagerData
But the function should work every time it is called, not only the first time.
Hello,
I tried with the data of the advanced demo project and it works fine.
I am not sure what could be wrong in my data which prevents loading of the task for the second time (click the load button again).
I have one error in console as well, could that be the reason ?
"Uncaught (in promise) Error: Conversion unit not provided
at _0x1206d8.$convertDuration (gantt.lite.umd.js:13)
at Generator.next (<anonymous>)
at _0x47654a.calculateProjectedXDateWithDuration (gantt.lite.umd.js:13)"
Hard to say without a test case, can you please provide one so we can investigate this?
Hello,
There was some issue with our logic which was preventing it to load second time.
It is loading fine now, though "conversion unit not provided" error is still there.
Thanks for the help.
Can you please provide a small test case we can inspect?
Hello Mats,
It seems to be failing for the durationUnit value.
With ExtJs gantt we were using "working days" as the durationUnit, but that is not working with Bryntum gantt.
I provided "day" as durationUnit and then there is no error.
Could you please let me know what is the equivalent of "working days" in the Bryntum gantt ?
Edit : Also, when providing the durationUnit as "days" it shows the start and end date different from what the actual row data is having, but this was not the case with the ExtJs Bryntum.
Thank you.
As it was already told we need a test case to see what happens. durationUnit field means basically the same thing it does in Ext Gantt. Duration by definition is amount of working time and durationUnit
value defines in which units the value is specified.