I need compute the percentual of my parents tasks according to the children tasks.
Exists a client method for this?
tks.
ps.
sry my bad english.
best regards.
3 Answers, 1 is accepted
0
Bozhidar
Telerik team
answered on 29 Jan 2015, 08:04 AM
Hello,
The percentComplete value of each parent is automatically calculated on each interaction with the gantt, for instance changing the percentComplete value of a child, or adding/removing child tasks. There is however no public method for calculating this value statically from the initial state of the gantt. If you are loading data, where only the child tasks have this property set, you will have to manually set the parents values as well.
The Gantt control expects all of the underlying data to be in correct format and doesn't do any modifications to it upon databinding. Once the data is in correct format, the Gantt will do the necessary calculations when you edit, add or remove tasks so that it stays correct.
Doing any kind of modifications upon databinding by the control itself will effectively show different information than what was passed to it from the datasource, which will be confusing, and that's why it's not supported.