We have created a custom task types (“Project” and “Task”) to separate the grouping of tasks from the task type “Resources assignment”. We are capturing duration and assigned hours, for the “ResourceTask” type, but not for “Projects” and “Tasks”.
In the grid, duration and assigned hours are summarized for “Project” and “Task”, see code snippet below. But we struggle to get the calculation updating when editing tasks/drag without complete refresh. Complete refresh takes time and ruins the current GANTT focus.
Any ideas how to keep the grid updated without full refresh?
Hello,
If you modify the task properties, you need to repaint the task to see the changes. It is not necessary to use the gantt.render() or gantt.refreshData() to see the changes. You only need to call the gantt.refreshTask(id) method after recalculating the assigned hours.
Hello,
If you use the template function in the column configuration, changing the task property that matches the column name won’t do anything. And it is expected behavior.
If you want to display different values in the template function, you need to use a different variable or modify the task property. Then you need to use that variable or property in the template function.