# GanttViewFactory

## Properties

### Gantt - [Gantt](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/gantt)

Gets or sets the DataSource.

## Methods

### DayView(System.Action)

Creates a new GanttView of type Day and adds it to the GanttView collection.

#### Parameters

##### addViewAction - System.Action<[GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder)>

The action to configure the GanttView.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### DayView()

Creates a new GanttView of type Day and adds it to the GanttView collection.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### WeekView(System.Action)

Creates a new GanttView of type Week and adds it to the GanttView collection.

#### Parameters

##### addViewAction - System.Action<[GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder)>

The action to configure the GanttView.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### WeekView()

Creates a new GanttView of type Week and adds it to the GanttView collection.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### MonthView(System.Action)

Creates a new GanttView of type Month and adds it to the GanttView collection.

#### Parameters

##### addViewAction - System.Action<[GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder)>

The action to configure the GanttView.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### MonthView()

Creates a new GanttView of type Month and adds it to the GanttView collection.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### YearView(System.Action)

Creates a new GanttView of type Year and adds it to the GanttView collection.

#### Parameters

##### addViewAction - System.Action<[GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder)>

The action to configure the GanttView.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### YearView()

Creates a new GanttView of type Year and adds it to the GanttView collection.

#### RETURNS

A [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) instance that can be used to configure the GanttView.

### Add()

Adds an item to the collection

#### RETURNS

Returns a [GanttViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/ganttviewbuilder) with the available configuration options.
