Our state of the art Gantt chart


Post by rahulranjan »

Hi
We have different editor for assigning and updating the successor records .
If any values is changed let say lag and relation ship type is changed now i want to update it in dependency store how can do it and what are the data we need to pass . I have gone through docs no update method is there .


Post by pmiklashevich »

You just need to find corresponding record in the store and change corresponding fields. Usually when you open an editor, you do it for a specific record. Just save a reference to the record somewhere in your editor, and when you modify some of values, set them to the record. Store will be automatically notified of the changes so you will be able to persist changes.

You can try in advanced demo:
https://bryntum.com/examples/gantt/advanced/

bryntum.query('gantt').dependencyStore.getById(1).lag = 5

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

HI
lag is working fine but relationship type is not changing

   project.dependencyStore.getById(id).lag = 20
   // This is not working , initially relation ship is 1 now i changed to 3 it does not change 
    project.dependencyStore.getById(id).type = 3;

Post by alex.l »

Hi rahulranjan,

It works well on https://bryntum.com/examples/gantt/advanced/
Could you please provide steps to reproduce?

All the best,
Alex

All the best,
Alex


Post by alex.l »

I've found a related ticket and looks like this problem has been fixed in 4.0.8 https://github.com/bryntum/support/issues/2263

All the best,
Alex


Post by rahulranjan »

Hi
Thanks for update
Any work round for version 4.0.0


Post by mats »

No you will have to upgrade to get the fix.


Post Reply