Our state of the art Gantt chart


Post by Bhava »

Hi team,
I have created a store and i used that inside gantt's taskeditor popup.
There i am doing crud operations,
I am able to add a new record as well as able to delete an existing record. And also getting changes using
Store.changes : here i am able to see the deleted and added records.

But how i can modify the existing record. so that i can check the modified array using changes?
What is the exact way to modify a data in a store.
ex: for adding i am using store.add(record) or store.remove(record) simillarly how i can give the modified data.

i have tried giving like store.getById(id).name="example" > it seems not working, instead of showing in modified data in changes it is showing in added

Can you please tell me how to properly modify a record. So that I can get the changes in modified array?


Post by mats »

The changes object include updated records too, it's documented here: https://bryntum.com/docs/gantt/#Core/data/Store#property-changes

To modify a record in the store.

store.getById(123).name = 'foo';

// now look at changes object

Post Reply