In Sitecore SPEAK, I use ListControl to bind a data source and display items in that data source. The ListControl has selectedItem and selectedItemId attributes so that I can easily access the selected item/row in the list.
In order to select multiple items in the ListControl, we need to use a control called MultiSelectList. A MultiSelectList is a Behavior control instead of a "real" list control.
To add a MultiSelectList Behavior into a ListControl, I need to do the following steps:
That’s it. When I open the page in my browser, I can see the check box in the first column of each row.
There are two more attributes i.e. checkedItems and checkedItemIds been added into the ListCotrol’s attributes.