Back to Devexpress

MVCxGantt Class

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

latest5.2 KB
Original Source

MVCxGantt Class

Represents a configured instance of the corresponding extension and is intended to be used mainly as a sender parameter when processing events on the server side.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public class MVCxGantt :
    ASPxGantt
vb
Public Class MVCxGantt
    Inherits ASPxGantt

Remarks

Note

To properly follow the ASP.NET MVC pattern, it is recommended to respond to end-user actions on the client-side (see Client-Side API) or to use Ajax callbacks to the server and handle these callbacks using custom action methods (see Using Callbacks).

The Gantt allows you to display the task flow and dependencies between tasks.

Declaration

To declare the Gantt in a View, invoke the Gantt(GanttSettings) or Gantt(Action<GanttSettings>) helper methods. These methods return 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.

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()

Online Demos

Implements

Show 26 items

IComponent

IDisposable

IParserAccessor

IDataBindingsAccessor

IControlBuilderAccessor

IControlDesignerAccessor

IExpressionsAccessor

IAttributeAccessor

DevExpress.Web.Internal.IWebControl

IUrlResolutionService

INamingContainer

IPostBackDataHandler

IPostBackEventHandler

ICallbackEventHandler

DevExpress.Web.Internal.IComponentHost

DevExpress.Web.Internal.IWebControlObject

DevExpress.Web.IClientObjectOwner

DevExpress.Web.Internal.IPostBackDataHandlerEx

DevExpress.Web.Internal.IPostDataCollection

DevExpress.Web.Internal.IHandleCallbackError

IDataSourceViewSchemaAccessor

DevExpress.Web.Design.IControlDesigner

DevExpress.Web.FormLayout.Internal.RuntimeHelpers.IDialogUtilsOwner

DevExpress.Web.Internal.IParentSkinOwner

DevExpress.Web.Internal.ISkinOwner

IPropertiesOwner

Inheritance

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxDataWebControl ASPxGantt MVCxGantt

See Also

MVCxGantt Members

DevExpress.Web.Mvc Namespace