ASP.NET ComboBox - Items with ASP.NET CheckBox controls
Ajax Page
Ajax Page
1
Button
Button
2
Calendar
Calendar
3
Checkbox
Checkbox
4
Color Picker
Color Picker
5
Combobox
Combobox
6
Easy Menu
Easy Menu
7
File Upload
File Upload
9
Flyout
Flyout
10
Grid
Grid
11
HTML Editor
HTML Editor
8
Image Zoom
Image Zoom
12
Radio Button
Radio Button
13
Scheduler
Scheduler
14
Show
Show
15
Order
The items of the ComboBox can be customized using templates. You can embed any content inside an item template,
including HTML markup and ASP.NET server controls (any control from the Obout suite may be added to a template).
In order to set up an item template, use the
ItemTemplate
property of the ComboBox.
To extract data from the data item, use the
Eval
method which expects as a parameter
the name of the data field from which to load the data.
This example showcases the use of
ASP.NET CheckBox
controls inside the items.
The end user is able to select any number of items by clicking on them or by checking the checkboxes.
You can easily detect at the server-side which items were selected, by looping through the items,
extracting the CheckBox control for each item (using the
FindControl
method) and analyzing
its
Checked
property to see whether the item was selected or not.
« Back to examples