Our state of the art Gantt chart


Post by alex.l »

it not only runs the change event when clicked but also when change data in store...,even if conditions have been added to the event

Could you please clarify this? You have condition passes for not "remove dependency" actions?

All the best,
Alex


Post by hieu »

Thank you very much, I have solved the problem


Post by hieu »

hi team
When I delete Dependency by right clicking, project?.current?.instance?.changes will return the id like this "_generatedModelClass_392bad46-f8f1-4470-a7df-5ab5d2d94f6e", so how can I get the id of task from _generatedModelClass id (I need the task id to call the api)
thanks


Post by alex.l »

Hi,

Please make sure the dependency you removed had an id before. Sounds like that dependency has not being saved and didn't get an id from server side.
I don't see that problem in our demo here https://bryntum.com/products/gantt/examples/advanced/
Do you?

All the best,
Alex


Post by hieu »

Thanks for replying
it definitely has an id because when I create its Dependency it still returns the id,but deleting the Dependency does not return the id

Attachments
remove Dependency
remove Dependency
Screen Shot 2023-11-21 at 16.51.06.png (69.83 KiB) Viewed 45 times
add Dependency
add Dependency
Screen Shot 2023-11-21 at 16.44.15.png (74.18 KiB) Viewed 48 times

Post by alex.l »

Ok, thanks!
Please provide steps to reproduce using our demos or attach your test case with instructions.

All the best,
Alex


Post by hieu »

sorry, i didn't add the id to the dependencies , i added it and the problem is fixed, thank you very much


Post by ghulam.ghous »

Glad to hear that. Please don't hesitate to reach out to us if you have any further questions.


Post Reply