Page 1 of 1

How to update parent tasks

Posted: Thu Oct 16, 2014 11:17 am
by egor
Hi, I added custom column ( "amount").
I need following functionality: if user changed value in amount field of the task , the amount value for parents must also be recalculated and updated on gantt. On server side - all works fine. But i need to refresh parents on gantt. I tried to return this parent tasks(as json objects) from server during calling update method- but nothing.

Re: How to update parent tasks

Posted: Thu Oct 16, 2014 2:02 pm
by Terence
I do not know the setup of your code. But is it not possible to bubble up the tree : https://docs.sencha.com/extjs/4.2.3/#!/a ... hod-bubble ?

taskModel implements nodeInterface. And when changing values of the task use 'set' to get the event updated in the layout.