New to Kendo UI for jQuery? Start a free 30-day trial

The configuration of the Gantt messages for Planned tasks.

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            switchText: "Show Planned Tasks",
            offsetTooltipAdvanced: "Completed earlier",
            offsetTooltipDelay: "Completed later"
        }
    }
});
</script>

The text for "days" displayed in the Advanced/Delayed Tooltip (see above).

Default: "days"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            days: "d"
        }
    }
});
</script>

The text for "hours" displayed in the Advanced/Delayed Tooltip (see above).

Default: "hours"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            hours: "hrs"
        }
    }
});
</script>

The text for "minutes" displayed in the Advanced/Delayed Tooltip (see above).

Default: "minutes"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            minutes: "min"
        }
    }
});
</script>

The text rendered in the Tooltip that would be displayed for tasks which have finished in advance compared to their plannedEnd.

Default: "Met deadline earlier"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            offsetTooltipAdvanced: "Completed ahead of schedule"
        }
    }
});
</script>

The text rendered in the Tooltip that would be displayed for tasks which have finished with delay compared to their plannedEnd.

Default: "Delay"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            offsetTooltipDelay: "Behind schedule"
        }
    }
});
</script>

The text for "seconds" displayed in the Advanced/Delayed Tooltip (see above).

Default: "seconds"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            seconds: "sec"
        }
    }
});
</script>

The text that would be displayed on the switch allowing the user to turn on and off the PlannedTasks view in the Gantt Timeline.

Default: "Planned Tasks"

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    messages: {
        plannedTasks: {
            switchText: "Show Planned Tasks"
        }
    }
});
</script>