Example of Split Tasks in Blazor Gantt Chart Component
This sample demonstrates the split tasks support in the Gantt Chart. Sometimes, things don't go as planned, and tasks get interrupted. This can happen due to unexpected events or when we need to change our priorities. In these situations, it helps to break the work into smaller parts so that we can pick up where we left off on a different day. Being able to pause and resume tasks makes it easier to deal with unexpected situations.
ID | Name | Start Date | End Date | Duration | Progress | Dependency |
---|
1 | Project initiation | 3/29/2022 | 4/19/2022 | 16 days | 40 | |
2 | Identify site location | 3/29/2022 | 4/8/2022 | 8 days | 30 | |
3 | Site analyze | 3/29/2022 | 4/11/2022 | 8 days | 50 | |
4 | Perform soil test | 4/11/2022 | 4/18/2022 | 5 days | 40 | 2FS |
6 | Project estimation | 4/8/2022 | 4/19/2022 | 8 days | 40 | |
5 | Soil test approval | 4/1/2022 | 4/18/2022 | 12 days | 20 | |
7 | Develop floor plan for estimation | 4/18/2022 | 4/18/2022 | 0 days | 30 | 4FS |
8 | List materials | 4/1/2022 | 4/11/2022 | 6 days | 30 | |
9 | Estimation approval | 4/12/2022 | 4/18/2022 | 4 days | 30 | 8FS |
10 | Building approval | 4/12/2022 | 4/18/2022 | 5 days | 0 | |
11 | Construction initiation | 4/1/2022 | 4/13/2022 | 9 days | 40 | |
12 | Ground floor initiation | 4/5/2022 | 4/12/2022 | 5 days | 40 | |
13 | First floor initiation | 4/5/2022 | 4/13/2022 | 7 days | 40 | |
14 | Electric work initiation | 4/1/2022 | 4/8/2022 | 5 days | 40 | |
15 | Plumbing work | 4/4/2022 | 4/8/2022 | 5 days | 40 |
Mar 23, 2022 | Mar 27, 2022 | Apr 03, 2022 | Apr 10, 2022 | Apr 17, 2022 | Apr 24, 2022 | May 01, 2022 | May 08, 2022 |
W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M |
The split tasks can be called the segments of a task. A task can be split into any number of segments with a minimum of one time unit cell. Segments can be defined in the DataSource format in the GanttSegmentFields component. Segments can be created or merged in two ways: using the Edit Dialog and Context Menu.
Segments can be mapped using the GanttSegmentFields component with the following properties and event:
PrimaryKey
- To map segment primary id.ForeignKey
- To map task id.StartDate
- To map segment start date.EndDate
- To map segment end date.Duration
- To map segment duration.OnSegmentUpdate
- To map segment event.
A task must have a minimum of two different duration time unit cells in order to be split. Similarly, milestone tasks or parent tasks cannot be split into segments.