Our state of the art Gantt chart


Post by prem.k@zetwerk.com »

Hi,
I want to reload task data after some action in bryntum grid. Ideally it should just update the affected cell rather than loading complete task data. How can we do that?


Post by Animal »

This might be what you need: https://www.bryntum.com/docs/grid/api/Core/data/Store#config-syncDataOnLoad

But loading the whole set of task data seems very wasteful. Is there any way you can just change what you need to change?


Post by prem.k@zetwerk.com »

Will this config will work if data is coming from backend. I have used below code to load data on load:

this.gantt.project.loadInlineData({
        tasksData: tasksData,
        dependenciesData: dataDependency
      });

What if i want to reload data again after calling some api, do i need to call above code with config syncDataOnLoad?


Post by alex.l »

Yes, that will work as expected if you set syncDataOnLoad: true. Check the docs https://bryntum.com/docs/gantt/api/Core/data/mixin/StoreSync#config-syncDataOnLoad

What loadInlineData do, is set store.data = [...] for all stores of the project one by one.

All the best,
Alex


Post Reply