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.
- C#
- VB.NET
public class dxGantt : dxBase
Public Class dxGantt
Inherits dxBase
Constructors
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);
dxGantt(options)
Constructs a new instance of the dxGantt class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);