Hi bryntum team
When I insert data into Gantt, an error is reported. Can you check the data for me.
Support Forum
- Attachments
-
- data.json
- (32.5 KiB) Downloaded 24 times
-
- 屏幕截图 2022-09-20 143900.png (95.27 KiB) Viewed 281 times
I used this example https://bryntum.com/examples/gantt/basic/
and set data like this:
gantt.project.inlineData = yourDataObject
The result I've got you can see on the picture in attachments. Console is clear.
Looks like we need more context to reproduce this.
Btw, please use tasksData
instead of eventsData
. That's correct format for Gantt.
Guide: https://bryntum.com/docs/gantt/guide/Gantt/data/project_data
- Attachments
-
- Screenshot 2022-09-20 at 11.06.55.png (53.7 KiB) Viewed 277 times
All the best,
Alex
thanks for your reply, alex. My colleague gave me a data yesterday.But then he found out that this was not the complete data .Please check the new data for me
- Attachments
-
- 1.json
- (925.42 KiB) Downloaded 19 times
The problem in
"durationUnit": null,
It cannot be null
. Better to omit fields than return null
because it overrides default value.
https://bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-durationUnit
All the best,
Alex