Task Scheduling and Markers in Blazor Gantt Chart
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (163).NET Core  (29).NET MAUI  (81)Angular  (81)ASP.NET  (50)ASP.NET Core  (79)ASP.NET MVC  (88)Azure  (38)Blazor  (160)DocIO  (23)Essential JS 2  (89)Essential Studio  (180)File Formats  (33)Flutter  (123)JavaScript  (190)Microsoft  (114)PDF  (68)React  (65)Succinctly series  (128)Syncfusion  (634)TypeScript  (32)Uno Platform  (3)UWP  (4)Vue  (40)Webinar  (35)Windows Forms  (59)WinUI  (56)WPF  (140)Xamarin  (157)XlsIO  (26)Other CategoriesBarcode  (5)BI  (29)Bold BI  (5)Build conference  (6)Business intelligence  (54)Button  (4)C#  (121)Chart  (59)Cloud  (13)Company  (445)Dashboard  (8)Data Science  (3)Data Validation  (6)DataGrid  (56)Development  (418)Doc  (7)DockingManager  (1)eBook  (96)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (24)Extensions  (19)File Manager  (4)Gantt  (14)Gauge  (11)Git  (4)Grid  (28)HTML  (12)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (333)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (33)Performance  (10)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (8)Road Map  (11)Scheduler  (39)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (23)Solution Services  (3)Spreadsheet  (11)SQL  (8)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (95)UI  (238)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (23)Visual Studio Code  (17)Web  (396)What's new  (229)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Task Scheduling and Markers in Blazor Gantt Chart

Task Scheduling and Markers in Blazor Gantt Chart

The Syncfusion Blazor Gantt Chart is a project management tool that provides a Microsoft Project-like interface for scheduling and managing projects.

Once computers introduced new ways of working, project managers found they could save time creating and updating their Gantt charts. Gantt charts help us to automate this process to support more advanced requirements, like creating task dependencies, adding milestones, or identifying the critical path of a project plan.

In this blog, I’ll talk about the task scheduling and marker features of Syncfusion’s Blazor Gantt Chart.

Task Scheduling

What is scheduling?

Gantt charts show what work is scheduled on a specific day. They also allow you to view a project’s start and end dates along with the progress made. Apart from individual task progress, you can also look at a task’s contribution to the completion of a parent task.

Gantt Chart Displaying Scheduled Tasks and Their Progress
Gantt Chart Displaying Scheduled Tasks and Their Progress

How does scheduling tasks help project planning?

Scheduling tasks is key to forecasting the completion of a project and enhancing communication with a team. Using a Gantt chart is like putting a bridge between your initial project plan and its execution. Gantt charts allow you to set accurate deadlines.

The Gantt Chart control provides different ways to schedule a task to meet any requirement:

Auto-scheduling mode

Syncfusion’s Blazor Gantt Chart is more convenient to handle and add information to. With auto mode, tasks in the Gantt Chart are validated for their start and end date values. These validations are based on child task duration and data value mismatch.

Auto-scheduling mode decreases the time spent planning tasks. Let’s see some examples that clearly explain this mode.

Example 1

new TaskData() {
    TaskId = 5,
    TaskName = "Project estimation",
    StartDate = new DateTime(2019, 03, 29),
    EndDate = new DateTime(2019, 04, 2),
    Duration="4"
}
Auto-scheduling in Blazor Gantt Chart
Auto-scheduling in Blazor Gantt Chart

Here the EndDate value in dataSource is on 2 April 2019, yet the taskbar is rendered up to 3 April 2019 since the duration is only four days. Also, considering Saturday and Sunday as non-working days, the end date is auto-validated as 3 April 2019.

Example 2

new TaskData() {
    TaskId = 1,
    TaskName = "Project initiation",
    StartDate = new DateTime(2019, 03, 28),
    EndDate = new DateTime(2019, 07, 28),  // This is end of parent record.
    Duration="4"
},
new TaskData() {
    TaskId = 2,
    TaskName = "Identify Site location",
    StartDate = new DateTime(2019, 03, 29),
    Progress = 30,
    ParentId = 1,
    Duration="2" // Child record duration.
 },
 new TaskData() {
     TaskId = 3,
     TaskName = "Perform soil test",
     StartDate = new DateTime(2019, 03, 29),
     ParentId = 1,
     Duration="4" // Child record duration
 },
Auto-scheduling Parent-Child Tasks in Blazor Gantt Chart
Auto-scheduling Parent-Child Tasks in Blazor Gantt Chart

In this example, the end date value of the parent record is 28 July 2019. Yet the parent row’s taskbar is rendered only until 3 April 2019. This is because parent row duration is auto-validated, considering its child-record durations. Since the maximum end date of the child record is 3 April 2019, the end date of the parent record is auto-validated to 3 April 2019.

Manual scheduling mode

The Gantt chart provides an option to auto-validate tasks to optimize task scheduling. We can schedule task dates as planned by the project managers by skipping the optimizations or validations. To do so, we can use the manual mode.

Let’s see an example.

new TaskData() {
     TaskId = 1,
     TaskName = "Project initiation",
     StartDate = new DateTime(2019, 03, 28),
     Duration="4"
},

The parent record’s start and end dates are 29 March 2019 and 31 March 2019, respectively.

Manual Scheduling in Blazor Gantt Chart
Manual Scheduling in Blazor Gantt Chart

The baseline taskbar, drawn in gray (where the red arrow points), is rendered with values found in DataSource without any validation. Though in manual mode, an auto-validated taskbar will also be rendered below the manually scheduled baseline taskbar.

The previous image shows that the manually scheduled baseline taskbar does not consider weekends, holidays, and child tasks.

Custom

Custom mode is a combination of both auto and manual modes. You can specify which records need to be auto-validated and which ones need to be manually scheduled.

Unscheduled tasks

We may have some uncertain tasks, such as not having a start or end date or not having both date values, which are unscheduled tasks. We can represent these unscheduled tasks by partially rendering the taskbar in the Gantt Chart.

Unscheduled Task in Blazor Gantt Chart
Unscheduled Task in Blazor Gantt Chart

In the previous image:

  • The first record has no start and end date; it has only a duration value.
  • The second record has only the start date.
  • The third record has only an end date.
  • The fourth record is a scheduled task.
  • The fifth record has no start or end date. And since the duration value is 0, it is marked as a milestone.

Baseline

To get a better view of a project’s deviation, a baseline works well. It shows the deviation between the planned and actual dates of a project. This feature is beneficial when you need to react quickly to project deviations. We should provide the deviation values along with DataSource to the Gantt control, and the Gantt chart will provide a UI representation of the deviations as taskbars.

Baseline in Blazor Gantt Chart
Baseline in Blazor Gantt Chart

Markers

Markers are indicators in the Gantt chart timeline highlighting a task or a specific date.

Markers in Blazor Gantt Chart
Markers in Blazor Gantt Chart

In the previous image, Research phase is a marker that denotes the product analysis that needs to be completed within that timeline.

Why are markers used?

In a large project or resource planning chart, markers highlight key events, deadlines, or reference points.

There are different types of markers to choose from based on the application scenario.

Event markers

A vertical line drawn on a particular timeline in a Gantt chart highlights the entire tasks in a project.

Event Marker in Blazor Gantt Chart
Event Marker in Blazor Gantt Chart

Data markers

Data markers display information in addition to a regular taskbar. We can use them to display a date or any other value.

Data Markers in Blazor Gantt Chart
Data Markers in Blazor Gantt Chart

Holidays

Different localities have different non-working days, and you can map the non-working days on a project timeline in a Gantt chart. This is helpful for task scheduling for working days.

Mapping Holidays in Blazor Gantt Chart
Mapping Holidays in Blazor Gantt Chart

You can also customize weekend holidays in the timeline.

Resources

For more information, refer to the GitHub project called Task Scheduling and Markers in the Blazor Gantt Chart component.

Conclusion

Thank you for reading this blog, where I addressed the Gantt chart’s task scheduling and marker features. For more details, refer to the Blazor Gantt Chart documentation. You can also use the sample uploaded here for better reference.

You can download our free trial if you want to try this Syncfusion component.

Contact us through our support forumsupport portal, or feedback portal. We are always happy to assist you!

Related blogs

 

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top