Example of Checkbox in ASP.NET MVC List Box Control
This sample demonstrates the checkbox functionalities of the ListBox. Click one or more items from the list of items in the ListBox.
Select your favorite car:
- Hennessey Venom
- Bugatti Chiron
- Bugatti Veyron Super Sport
- SSC Ultimate Aero
- Koenigsegg CCR
- McLaren F1
- Aston Martin One- 77
- Jaguar XJ220
- McLaren P1
- Ferrari LaFerrari
The ListBox
component has built-in support to select multiple items from the list. The Checkbox selection can be enabled by setting the
showCheckbox
opens in a new tab as true
in the SelectionSettings
opens in a new tab property.
To perform the checkbox feature in the ListBox, the CheckBoxSelection
module has to be injected at the application level.
More information about checkbox selection in ListBox can be found in the documentation sectionopens in a new tab.