ASP.NET MVC Controls | ComponentOne
Working with Controls / Input Controls / MultiSelectListBox
In This Topic
    MultiSelectListBox
    In This Topic

    The MultiSelectListBox control is an advanced ListBox control that supports check boxes for each item, ability to select all items and a feature to filter the list. The control is represented by the MultiSelectListBox class which allows it to displays a list of items which may contain plain text or HTML, and allows users to select multiple items. The MultiSelectListBox class allows you to select all items in the list using the ShowSelectAllCheckbox property and filter the items using the ShowFilterInput property. It also allows you to programmatically retrieve the checked items using the CheckedItems property.

    MultiSelectListBox control showing a list of products.

    The following example uses the Products table from NWind to show the list of products in the MultiSelectListBox control.

    Controller

    CellMarkerController.cs
    Copy Code
    Type your example code here. It will be automatically colorized when you switch to Preview or build the help system.
    

    View for the Controller

    Index.cshtml
    Copy Code
    Type your example code here. It will be automatically colorized when you switch to Preview or build the help system.
    

    In addition, it lets you set the minimum number of rows and/or columns required to enable virtualization in the ListBox control using the VirtualizationThreshold property. For more information, see Virtualization.