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?
Support Forum
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?
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?
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