Skip to main content

kendoGantt

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The Gantt displays a set of tasks and dependencies which are used to visualize project-planning data.

public class kendoGantt : kendoBase

Constructors​

Instance member kendoGantt()​

Constructs a new instance of the kendoGantt class.

Example:

The following example creates a Gantt chart and assigns its tasks through the Options property.

var gantt = new kendoGantt();
gantt.Options.views = new[] { "day", "week", "month" };
gantt.Options.dataSource = new object[]
{
new { id = 1, orderId = 0, parentId = (int?)null, title = "Release 2.0", summary = true, expanded = true,
start = new DateTime(2025, 6, 2), end = new DateTime(2025, 6, 13) },
new { id = 2, orderId = 0, parentId = (int?)1, title = "Design", percentComplete = 0.5,
start = new DateTime(2025, 6, 2), end = new DateTime(2025, 6, 6) }
};
gantt.Dock = DockStyle.Fill;
this.Controls.Add(gantt);

Instance member kendoGantt(options)​

Constructs a new instance of the kendoGantt class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a Gantt chart bound to a list of tasks, with one dependency and a custom set of columns.

var gantt = new kendoGantt(new
{
dataSource = tasks,
dependencies = new[]
{
new { id = 1, predecessorId = 2, successorId = 3, type = 1 }
},
columns = new object[]
{
new { field = "title", title = "Task", width = 200 },
new { field = "start", title = "Start", format = "{0:d}" }
},
showWorkHours = false
});
gantt.Dock = DockStyle.Fill;
this.Controls.Add(gantt);

Implements​