Skip to content

Gantt parent task percentComplete does not update correctly in filtering scenarios #6111

@IvanDanchev

Description

@IvanDanchev

Bug report

Reproduction of the problem

Reproducible in the Columns demo: https://demos.telerik.com/kendo-ui/gantt/columns

  1. Filter by "Title" -> contains "Market". Only the child "Market" will be visible in the parent "Research" task.
  2. Edit "Market" and set it percentComplete to 100%.

Current behavior

The parent's percent complete is also set to 100%. This is incorrect, since the other children of parent are not removed from the dataSource, they are just visually filtered. The problem becomes more evident, if the filter is cleared. Then the parent keeps its 100% value, even though it contains child tasks with percentComplete less than 100%.

Expected/desired behavior

The parent task percent complete should be consistent to the behavior without filtering applied. Using the same example, this means: on updating "Market" to 100%, Research should change its percentComplete to 49%, taking into account all of its children percentComplete values.

Environment

  • Kendo UI version: 2020.3.1021
  • jQuery version: x.y
  • Browser: [all]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions