Page 1 of 1

[INFO REQ] Gantt chart sync method

Posted: Mon Jul 04, 2022 11:02 pm
by rajesh@step.nz

Hi

I am implementing Gantt chart in my project, i just want to ask, In sync method is there any way to get entire state of gantt chart instead of changes ?

Thanks
Rajesh


Re: [INFO REQ] Gantt chart sync method

Posted: Mon Jul 04, 2022 11:08 pm
by marcio

Hey Rajesh,

What do you mean by the entire state?? And which sync method are you referring to??


Re: [INFO REQ] Gantt chart sync method

Posted: Mon Jul 04, 2022 11:12 pm
by rajesh@step.nz

Hi marcio
Thanks for quick response, the sync method i am referring to is below inside project model.

   
transport: { load: {
}, sync: { }, },

and when i say entire state, in data we pass to gantt chart, for suppose tasks collection, is there any way to get entire data what we have passed with updated in sync method ?

Thanks
Rajesh


Re: [INFO REQ] Gantt chart sync method

Posted: Mon Jul 04, 2022 11:36 pm
by mats

Not out of the box, why would you want to send data that hasn't been changed? You can grab the full raw JSON data anytime using:

gantt.project.toJSON()