Our state of the art Gantt chart


Post by SIM-LTD »

Hi

Why loading data from another way than Jason, leads to an issue.

Indeed, based on the "Gantt Advanced Demo" under VueCLI (provided by you) we are running a couple of test and realized that if we do not use "Jason" transport to load the data, but instead we load the data manually, then the Gantt is filled but the console shows an odd error, that we do not understand.

Please look at the screenshot herewith.

As you can see, based on the sample "Gantt Advanced Demo" we simply commented on the part "Transport" and manually load the data in (EventDatas+DependenciesData), to run some test and to be well acquainted with the component. The Gantt is displayed but as you can see there is message error.

Does it mean the Gantt can only accept the data coming from Jason file, using "Transport" ?
And moreover, will we be able to load data from an external database source (not hard coding like we tested hereunder)?
To be more precise we won't use at all both "Transport" or Ajaxstore (CRUD).
We plan to use the collection store: "TaskStore" + "DependencyStore" + "AssignmentStore" + "ResourceStore"
so as to load are data dynamically. Will this be possible?
Attachments
Capture d’écran 2019-05-17 à 19.13.21.png
Capture d’écran 2019-05-17 à 19.13.21.png (89.81 KiB) Viewed 1118 times
Capture d’écran 2019-05-17 à 19.14.32.png
Capture d’écran 2019-05-17 à 19.14.32.png (433.36 KiB) Viewed 1118 times

Post by mats »

We recommend you use our transport mechanism to load data from your backend. Our demos use hardcoded data for simplicity but you of course will write a backend service to receive the ajax requests and respond with actual data from your database.

But of course if you want to, you can load data into our stores too manually. Just look at our Store API. https://bryntum.com/docs/grid/#Common/data/Store

Post by SIM-LTD »

As per our internal process, we cannot use the standard transport mechanism.
We'll load the data manually with the store as recommended.
Thank you for your response.

Post Reply