MultiSelectList Class

Definition

Represents a list of items that users can select more than one item from.

public class MultiSelectList : System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>
type MultiSelectList = class
    interface seq<SelectListItem>
    interface IEnumerable
Public Class MultiSelectList
Implements IEnumerable(Of SelectListItem)
Inheritance
MultiSelectList
Derived
Implements

Constructors

MultiSelectList(IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.

MultiSelectList(IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values.

MultiSelectList(IEnumerable, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the selected values, the disabled values.

MultiSelectList(IEnumerable, String, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, and the data text field.

MultiSelectList(IEnumerable, String, String, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the selected values.

MultiSelectList(IEnumerable, String, String, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the disabled values.

MultiSelectList(IEnumerable, String, String, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the data group field.

MultiSelectList(IEnumerable, String, String, String, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, and the selected values.

MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, and the disabled values.

MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, the disabled values, and the disabled groups.

Properties

DataGroupField

Gets the data group field.

DataTextField

Gets or sets the data text field.

DataValueField

Gets or sets the data value field.

DisabledGroups

Gets the disabled groups.

DisabledValues

Gets the disabled values.

Items

Gets or sets the items in the list.

SelectedValues

Gets or sets the selected values.

Methods

GetEnumerator()

Returns an enumerator that can be used to iterate through the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator can be used to iterate through a collection.

Applies to