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

Defines the fluent interface for configuring Selectable

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ListViewSelectionSettingsBuilder

Inheritance: objectListViewSelectionSettingsBuilder

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

Constructors

Initiealizes a new instance of the ListViewSelectionSettingsBuilder class.

C#
public ListViewSelectionSettingsBuilder(ListViewSelectionSettings settings)
Parameters:settingsListViewSelectionSettings

Methods

Enables or disables selection.

C#
public ListViewSelectionSettingsBuilder Enabled(bool value)
Parameters:valueboolReturns:

ListViewSelectionSettingsBuilder

Example:
C#
@( Html.Kendo().ListView(Model)
.Name("ListView")
.Enabled(true)
)

Specifies whether multiple or single selection is allowed.

C#
public ListViewSelectionSettingsBuilder Mode(ListViewSelectionMode mode)
Parameters:modeListViewSelectionMode

The mode for selection.

Returns:

ListViewSelectionSettingsBuilder

The Mode method is useful to switch between different selection modes.

Example:
C#
@( Html.Kendo().ListView(Model)
.Name("ListView")
.Selectable(selection => selection.Mode(ListViewSelectionMode.Multiple))
)