Skip to main content

dxGantt

Namespace: Wisej.Web.Ext.DevExtreme

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

The Gantt widget displays the task flow and dependencies between tasks.

public class dxGantt : dxBase

Constructors​

Instance member dxGantt()​

Constructs a new instance of the dxGantt class.

Example:

The following example creates a Gantt chart and binds its tasks to a list of objects that expose the id, parentId, title, start and end fields.

var gantt = new dxGantt();
gantt.Options.tasks = new
{
dataSource = tasks,
keyExpr = "id",
parentIdExpr = "parentId",
titleExpr = "title",
startExpr = "start",
endExpr = "end"
};
gantt.Options.scaleType = "weeks";
gantt.Dock = DockStyle.Fill;
this.Controls.Add(gantt);

Instance member dxGantt(options)​

Constructs a new instance of the dxGantt class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a Gantt chart with tasks, dependencies and a custom task list.

var gantt = new dxGantt(new
{
tasks = new { dataSource = tasks },
dependencies = new { dataSource = dependencies },
columns = new[]
{
new { dataField = "title", caption = "Task", width = 250 },
new { dataField = "progress", caption = "Done (%)", width = 90 }
},
taskListWidth = 340,
scaleType = "months"
});
gantt.Dock = DockStyle.Fill;
this.Controls.Add(gantt);

Implements​