Our state of the art Gantt chart


Post by rahulranjan »

Hi
We are planning to have different screens(Popup/ component) for assigning predecessors and successors to a task . Separate Screen for predecessors and successors as we have in task editor different tabs .
What needs to be passed to components of predecessors and successors (same way you guys do for task Editor) so that it should behave the same as it does in task Editor. Upon save it should appears in Gantt

Can same example with assuming predecessors and successors pop up


Post by alex.l »

Hi rahulranjan,

You'll need to have a full project model along with the task you want to edit. Any changes in relations need to be validated / recalculated / saved. You need a full project for any of these actions.
Components that used in DependencyTab's grid:
https://bryntum.com/docs/scheduler-pro/#SchedulerPro/widget/DependencyTypePicker
https://bryntum.com/docs/scheduler-pro/#SchedulerPro/column/DurationColumn
https://bryntum.com/docs/scheduler-pro/#SchedulerPro/widget/ModelCombo

Good luck,
Alex

All the best,
Alex


Post by rahulranjan »

Hi
Thanks
project model - We can send
with the task we want to edit - the selected task
Once we get this

  1. We need to show the list of task(Successors which can be assigned to selected task) in Popup ? how we can filter the tasks from project model to show in popup.
  2. After that if a task is selected and successor is added and clicked on save button .
    how to validate (show any error if occurs ), recalculated the project (what needs to call (methods )) and after save we need to commit to stores (In Project Model)?
  3. get list of assigned successors of selected task
  4. If we delete any successor then what method to call and remove it from successor list of task ?
    Can you please give some sample code for this
Last edited by rahulranjan on Tue Jan 19, 2021 11:12 am, edited 1 time in total.

Post by rahulranjan »

Hi
Can we use this components in Angular templates ?


Post by pmiklashevich »

how we can filter the tasks from project model to show in popup.

You can chain the store and apply filter function while chaining: https://www.bryntum.com/docs/gantt/#Core/data/mixin/StoreChained#config-chainedFilterFn

how to validate (show any error if occurs ), recalculated the project (what needs to call (methods )) and after save we need to commit to stores (In Project Model)?

You just need to call commitAsync and check the result. Is an error occurred rejectedWith is present in the result.

result = await project.commitAsync();
console.log(result.rejectedWith)

There is no error details out of the box. We have a ticket to improve validation: https://github.com/bryntum/support/issues/1264

get list of assigned successors of selected task

https://www.bryntum.com/docs/gantt/#Gantt/model/TaskModel#property-successorTasks

If we delete any successor then what method to call and remove it from successor list of task ?

If a task is removed all corresponding dependencies where the task is mentioned are removed too. Just commit the changes and the project will get recalculated.

Can we use this components in Angular templates ?

All the questions above are about data layer and can be used the same way in all frameworks. What do you mean by "this components"? Please provide more details on the question.

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Hi

  1. Can we use Dependency Picker in Angular components HTML directly ? if yes what is the procedure for it

  2. How to use chainedFilterFn any example for it . When we filter the selected task for which successor is added should not be shown. How can we achieve it

  3. How to remove dependency of selected task . (all or a particular dependencies )


Post by mats »

Rahul, please ask one question per topic only. Split your questions into separate topics.


Post Reply