The DevExpress Check Box List is a check box group that provides end-users with the ability to select multiple items. Its contents can be generated dynamically by binding the editor to a data source. You can also create items explicitly by manually populating the Properties.Properties.Items collection. For each list item, you can specify its caption and associated value.
To define the Check Box List's selected items on the server side, you can use a list item's Selected property. On the client side, the editor exposes specific methods allowing you to manipulate item selection states with ease (SelectItems/UnselectItems, SelectIndicies/UnselectIndicies, SelectValues/UnselectValues). You can also easily select/unselect all editor items by using the SelectAll/UnselectAll client methods.
The Check Box List layout is flexibly customized. You can display check box items in several columns (Properties.RepeatColumns), set a direction of items within the editor (horizontal or vertical through the Properties.RepeatDirection property), and specify whether items are aligned within a table or rendered without any table structure (Properties.RepeatLayout).
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos