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

Defines the fluent API for configuring TreeListSelectableSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectTreeListSelectableSettingsBuilder<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 TreeListSelectableSettingsBuilder(TreeListSelectableSettings<T> container)
Parameters:containerTreeListSelectableSettings<T>

Properties

C#
protected TreeListSelectableSettings<T> Container { get; }

Methods

Specifies whether multiple or single selection is allowed.

C#
public TreeListSelectableSettingsBuilder<T> Mode(TreeListSelectionMode value)
Parameters:valueTreeListSelectionMode

The value for Mode

Returns:

TreeListSelectableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Selectable(s =&gt; s
.Mode(TreeListSelectionMode.Multiple))
)

Specifies whether row or cell selection is allowed.

C#
public TreeListSelectableSettingsBuilder<T> Type(TreeListSelectionType value)
Parameters:valueTreeListSelectionType

The value for Type

Returns:

TreeListSelectableSettingsBuilder<T>

Example:
C#
@(Html.Kendo().TreeList&lt;UserViewModel&gt;()
.Name("treelist")
.Selectable(s =&gt; s
.Type(TreeListSelectionType.Cell))
)