GanttBuilder<T>.Columns(Action<CollectionFactory<GanttColumnBuilder<T>>>) Method
An array of columns in the Gantt. Mirrors the client-side columns option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public GanttBuilder<T> Columns(
Action<CollectionFactory<GanttColumnBuilder<T>>> configurator
)
Parameters
Name | Type | Description |
---|---|---|
configurator | Action<CollectionFactory<GanttColumnBuilder<T>>> | A function that allows you to specify nested options. |
Returns
Type | Description |
---|---|
GanttBuilder<T> | A reference to the Gantt object. |
Remarks
@(Html.DevExtreme().Gantt()
.Columns(cl => {
cl.Add();
cl.Add().Columns(subColumns => {
subColumns.Add();
)}
//...
})
//...
)
See Also