Category / Section
How to change weekend background color for Gantt schedule header
1 min read
In Gantt, it is possible to customize the weekend highlight color for the Gantt schedule header by using scheduleHeaderSettings.weekendBackground property, please refer the following code example for this.
$(function () { $("#GanttContainer").ejGantt({ dataSource: defaultGanttData, taskIdMapping: "TaskID", scheduleHeaderSettings: { weekendBackground: "#00FFFF" }, //.. }); });
The below screenshot shows the output of above code example.
A simple sample to change the background color for the Gantt schedule header is available here.