Holidays
17 Feb 20222 minutes to read
Non-working days in a project can be displayed in the Gantt control using the Holidays
property. Each holiday can be defined with the following properties:
-
From
: Defines start date of the holiday(s). -
To
: Defines end date of the holiday(s). -
Label
: Defines the description or label for the holiday. -
CssClass
: Formats the holidays label in the Gantt chart.
The following code example shows how to display the non-working days in the Gantt control.
public IActionResult Index()
{
ViewBag.DataSource = GanttData.ProjectNewData();
return View();
}
The following screenshot shows the output of Holidays in Gantt control.