Back to Devexpress

GanttSettings Class

aspnetmvc-devexpress-dot-web-dot-mvc-a3b02cca.md

latest2.2 KB
Original Source

GanttSettings Class

Contains the Gantt extension settings.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public class GanttSettings :
    SettingsBase
vb
Public Class GanttSettings
    Inherits SettingsBase

Remarks

To declare the Gantt in a View, invoke the Gantt(GanttSettings) helper method. This method returns the Gantt extension that is implemented by the GanttExtension class.

To configure the Gantt extension, pass the GanttSettings object to the Gantt(GanttSettings) helper method as a parameter. The GanttSettings object contains all the Gantt extension settings.

Run Demo: MVC Gantt Introduction

csharp
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.CallbackRouteValues = new { Controller = "Gantt", Action = "FeaturesPartial" };
    settings.Width = Unit.Percentage(100);

    settings.KeyFieldName = "ID";
    settings.ParentFieldName = "ParentID";
    ...
    ...
}).Bind(GanttDataProvider.Tasks, GanttDataProvider.Dependencies, GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments).GetHtml()

Inheritance

Object SettingsBase GanttSettings

See Also

MVC Gantt - Main Features

MVC Gantt - Examples

MVC Gantt - Online Demos

GanttSettings Members

DevExpress.Web.Mvc Namespace