New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the GanttEditableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GanttEditableSettingsBuilder

Inheritance: objectGanttEditableSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public GanttEditableSettingsBuilder(GanttEditableSettings settings)
Parameters:settingsGanttEditableSettings

Methods

If set to true (default), when there is a drag column for the items in the TreeList part of the Gantt, the user will be allowed to reorder rows via click move click interaction as an alternative of the drag and drop one.

C#
public GanttEditableSettingsBuilder ClickMoveClick(bool value)
Parameters:valuebool

The value that configures the clickmoveclick.

Returns:

GanttEditableSettingsBuilder

If set to true the Gantt will display a confirmation dialog when the user deletes a task or a dependency.

C#
public GanttEditableSettingsBuilder Confirmation(bool value)
Parameters:valuebool

The value that configures the confirmation.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Confirmation(true))
)

If set to false the user won't be able to create tasks.

C#
public GanttEditableSettingsBuilder Create(bool value)
Parameters:valuebool

The value that configures the create.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Create(true))
)

If set to false the user won't be able to create dependencies.

C#
public GanttEditableSettingsBuilder DependencyCreate(bool value)
Parameters:valuebool

The value that configures the dependencycreate.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.DependencyCreate(true))
)

If set to false the user won't be able to delete dependencies.

C#
public GanttEditableSettingsBuilder DependencyDestroy(bool value)
Parameters:valuebool

The value that configures the dependencydestroy.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.DependencyDestroy(true))
)

If set to false the user won't be able to delete tasks.

C#
public GanttEditableSettingsBuilder Destroy(bool value)
Parameters:valuebool

The value that configures the destroy.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Destroy(true))
)

If set to false the user won't be able to edit the percentComplete of the tasks.

C#
public GanttEditableSettingsBuilder DragPercentComplete(bool value)
Parameters:valuebool

The value that configures the dragpercentcomplete.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.DragPercentComplete(true))
)

If set to false the user won't be able to move tasks.

C#
public GanttEditableSettingsBuilder Move(bool value)
Parameters:valuebool

The value that configures the move.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Move(true))
)

If set to true the default pop-up editor of the Gantt will render the plannedStart and plannedEnd editors for the edited task.

C#
public GanttEditableSettingsBuilder PlannedTasks(bool value)
Parameters:valuebool

The value that configures the plannedtasks.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.PlannedTasks(true))
)

If set to false the user won't be able to reorder tasks in the task list.

C#
public GanttEditableSettingsBuilder Reorder(bool value)
Parameters:valuebool

The value that configures the reorder.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Reorder(true))
)

If set to false the user won't be able to resize tasks.

C#
public GanttEditableSettingsBuilder Resize(bool value)
Parameters:valuebool

The value that configures the resize.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Resize(true))
)

The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

C#
public GanttEditableSettingsBuilder Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
.Name("gantt")
.Editable(e => e.Template("Value"))
)

The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

C#
public GanttEditableSettingsBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

GanttEditableSettingsBuilder

The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

C#
public GanttEditableSettingsBuilder TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Editable(e =&gt; e.TemplateHandler("Value"))
)

The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

C#
public GanttEditableSettingsBuilder TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Editable(e =&gt; e.TemplateId("Value"))
)

The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

C#
public GanttEditableSettingsBuilder TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Editable(e =&gt; e.TemplateView(Html.Partial("TemplateView")))
)

If set to false the user won't be able to update tasks.

C#
public GanttEditableSettingsBuilder Update(bool value)
Parameters:valuebool

The value that configures the update.

Returns:

GanttEditableSettingsBuilder

Example:
C#
@(Html.Kendo().Gantt&lt;TaskViewModel, DependencyViewModel&gt;()
.Name("gantt")
.Editable(e =&gt; e.Update(true))
)