Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

List Box


The DevExpress ASP.NET MVC List Box editor allows multiple list items to be selected at the same time. The editor's Properties.SelectionMode property controls selection behavior. Depending on this property's setting, the following selection modes are available within the ListBox editor:

  • Single - End-users can select only one item within the editor.
  • Multiple - End-users can select multiple items within the editor by clicking list items while pressing Ctrl (to add an individual item) or Shift (to select a range of items).
  • CheckColumn - End-users can select multiple items within the editor by clicking list items.

When Multiple Selection is enabled, use the item's Selected property to specify individual items' selection state. Use the GetSelectedValues static method to obtain a collection of selected items. Also, to apply an item selection on the client side, use a specific client API (the editor's GetSelectedItems, SelectItems, and UnselectItems client methods).

When the CheckColumn selection mode is enabled for the list box, end-users can select all items using the "Select All" check box at the top of the list box. To enable this feature, set the Properties.EnableSelectAll option to true.

Note that in multiple selection mode, all the ListBox features are supported, with the exception of loading items on demand via callbacks.

Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos