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

List Box with Multiple Selection

v
 
ModelPrice
  

The DevExpress ASP.NET List Box (ASPxListBox) editor allows you to select multiple list items at the same time. The editor's SelectionMode property controls selection behavior. Depending on this property's setting, the following selection modes are available within the ASPxListBox 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 SelectedItems or SelectedIndices properties 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, 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 ASPxListBox's EnableSelectAll option to true.

Note that in multiple selection mode, all ASPxListBox's features are supported, except loading items on demand via callbacks (which the editor's EnableCallbackMode and CallBackPageSize properties usually control).

Collapse/Expand
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
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxEditorsDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxEditorsDemos