List
Last updated
Last updated
The List Web Control is a repeating element to display a collection of data. It can be used in input forms or to display data. The List Web Control iterates over a variable list, displaying a cell for each item on the list. Lists can use Button Cell Web Controls, Simple Cell Web Controls, Checkbox Cell Web Controls, or Radio Cell Web Controls to hold each of the items.
The list of data. Each item in the list has its own cell.
By default named as item
. This property is used within the context of each cell as the current item.
By default named index
. This is the number value of the current index of the current item, visible within the context of the cell.
By default named items.
This is a variable referring to the entire collection of Objects, with the default values set up: items[index] = item
.
Because Lists are generic containers, they can work with any of the cell types:
A simple List containing the list of houses a service manages:
Create a list control on the page. Populate a list of Houses. Set the data to the list of houses. Add a simple cell and populate the cell with the title and image of the house.