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

Defines the fluent API for configuring the TreeListEditableSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class TreeListEditableSettingsBuilder<T> where T : class

Inheritance: objectTreeListEditableSettingsBuilder<T>

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

Constructors

C#
public TreeListEditableSettingsBuilder(TreeListEditableSettings<T> settings)
Parameters:settingsTreeListEditableSettings<T>

Methods

The editing mode to use. The supported editing modes are "inline", "popup" and "incell".

C#
public TreeListEditableSettingsBuilder<T> Mode(string value)
Parameters:valuestring

The value that configures the mode.

Returns:

TreeListEditableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Editable(e =&gt; e.Mode("inline"))
)

The editing mode to use. The supported editing modes are "inline", "popup" and "incell".

C#
public TreeListEditableSettingsBuilder<T> Mode(TreeListEditMode value)
Parameters:valueTreeListEditMode

The value that configures the mode.

Returns:

TreeListEditableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Editable(e =&gt; e.Mode("inline"))
)

Enables the drag-and-drop UI of rows between parents.

C#
public TreeListEditableSettingsBuilder<T> Move()
Returns:

TreeListEditableSettingsBuilder<T>

Enables the drag-and-drop UI of rows between parents.

C#
public TreeListEditableSettingsBuilder<T> Move(Action<TreeListEditableMoveSettingsBuilder<T>> configurator)
Parameters:configuratorAction<TreeListEditableMoveSettingsBuilder<T>>

The action that configures the move.

Returns:

TreeListEditableSettingsBuilder<T>

Enables the drag-and-drop UI of rows between parents.

C#
public TreeListEditableSettingsBuilder<T> Move(bool enabled)
Parameters:enabledbool

Enables or disables the move option.

Returns:

TreeListEditableSettingsBuilder<T>

The template which renders the popup editor.The template has to contain elements whose name HTML attribute is set to the name of the editable field. In this way, the TreeList recognizes the field to which it has to bind the each editor. Alternatively, use MVVM bindings for binding HTML elements to data item fields.

C#
public TreeListEditableSettingsBuilder<T> Template(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TreeListEditableSettingsBuilder<T>

The template which renders the popup editor.The template has to contain elements whose name HTML attribute is set to the name of the editable field. In this way, the TreeList recognizes the field to which it has to bind the each editor. Alternatively, use MVVM bindings for binding HTML elements to data item fields.

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

A Template component that configures the template.

Returns:

TreeListEditableSettingsBuilder<T>

Specify which editor template should be used.

C#
public TreeListEditableSettingsBuilder<T> TemplateComponentName(string templateName)
Parameters:templateNamestring

The editor template name

Returns:

TreeListEditableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Editable(e =&gt; e
.TemplateComponentName("TemplateComponentName"))
)

The template which renders the popup editor.The template has to contain elements whose name HTML attribute is set to the name of the editable field. In this way, the TreeList recognizes the field to which it has to bind the each editor. Alternatively, use MVVM bindings for binding HTML elements to data item fields.

C#
public TreeListEditableSettingsBuilder<T> TemplateHandler(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TreeListEditableSettingsBuilder<T>

The template which renders the popup editor.The template has to contain elements whose name HTML attribute is set to the name of the editable field. In this way, the TreeList recognizes the field to which it has to bind the each editor. Alternatively, use MVVM bindings for binding HTML elements to data item fields.

C#
public TreeListEditableSettingsBuilder<T> TemplateId(string value)
Parameters:valuestring

The value that configures the template.

Returns:

TreeListEditableSettingsBuilder<T>

The EditorTemplate which to be rendered as editor.

C#
public TreeListEditableSettingsBuilder<T> TemplateName(string name)
Parameters:namestring

The name of the EditorTemplate

Returns:

TreeListEditableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Editable(e =&gt; e.TemplateName("TemplateName"))
)

The template which renders the popup editor.The template has to contain elements whose name HTML attribute is set to the name of the editable field. In this way, the TreeList recognizes the field to which it has to bind the each editor. Alternatively, use MVVM bindings for binding HTML elements to data item fields.

C#
public TreeListEditableSettingsBuilder<T> TemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the template.

Returns:

TreeListEditableSettingsBuilder<T>

Specifies the window options for the popup editing of the component.

C#
public TreeListEditableSettingsBuilder<T> Window(Action<WindowBuilder> configurator)
Parameters:configuratorAction<WindowBuilder>

The configurator

Returns:

TreeListEditableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Editable(e =&gt; e
.Window(window =&gt; window
.Height("150px")
.Width("250px")
.Title("Custom Edit")
)
)
)