How to calculate the percents of the parent tasks?

4 posts, 0 answers
  1. Marcos
    Marcos avatar
    2 posts
    Member since:
    Mar 2008

    Posted 26 Jan 2015 Link to this post

    Hi folks,

    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.

  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 29 Jan 2015 Link to this post

    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.

    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marcos
    Marcos avatar
    2 posts
    Member since:
    Mar 2008

    Posted 03 Feb 2015 in reply to Bozhidar Link to this post

    So, why are not calculating on databinding?

    ps.
    I'm not using dependency between taks.

  5. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 04 Feb 2015 Link to this post

    Hi,

    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.

    Regards,
    Bozhidar
    Telerik
Back to Top