TreeListEditableSettingsBuilder

Methods

Mode(System.String)

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

Parameters

value - System.String

The value for Mode

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            		.Editable(e => e.Mode("inline"))
            	)
             

TemplateComponentName(System.String)

Specify which editor template should be used.

Parameters

templateName - System.String

The editor template name

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            		.Editable(e => e
            		    .TemplateComponentName("TemplateName"))
            	)
             

Window(System.Action)

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

Parameters

configurator - System.Action<WindowBuilder>

The configurator

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            		.Editable(e => e
            		    .Window(window => window
            		        .Height("150px")
            		        .Width("250px")
            		        .Title("Custom Edit")
            		    )
            		)
            	)
             

Move(System.Action)

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

Parameters

configurator - System.Action<TreeListEditableMoveSettingsBuilder>

The configurator for the move setting.

RETURNS

Returns the current instance of TreeListEditableSettingsBuilder .

Move()

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

RETURNS

Returns the current instance of TreeListEditableSettingsBuilder .

Move(System.Boolean)

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

Parameters

enabled - System.Boolean

Enables or disables the move option.

RETURNS

Returns the current instance of TreeListEditableMoveSettingsBuilder .

Template(System.String)

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.

Parameters

value - System.String

The value for Template

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

TemplateId(System.String)

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.

Parameters

templateId - System.String

The ID of the template element for Template

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for Template

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

TemplateHandler(System.String)

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.

Parameters

templateHandler - System.String

The handler that returs the template for Template

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

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.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the template.

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

TemplateName(System.String)

The EditorTemplate which to be rendered as editor.

Parameters

value - System.String

The value for TemplateName

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.

Mode(Kendo.Mvc.UI.TreeListEditMode)

Represents the editing modes supported by Kendo UI TreeList for ASP.NET MVC

Parameters

value - TreeListEditMode

The value for Mode

RETURNS

Returns the current TreeListEditableSettingsBuilder instance.