Here are a few samples that does this:
https://azuremapscodesamples.azurewebsites.net/?sample=Page%20through%20POI%20results
https://azuremapscodesamples.azurewebsites.net/?sample=Interactive%20Search%20Quickstart
https://azuremapscodesamples.azurewebsites.net/?sample=Simple%20Store%20Locator
Basically, in your list items, store an ID for each shape in it (i.e. use rel
attribute, or pass as a parameter in an event onclick="myHandler('shapeID')"
. Then retrieve the shape from the data source using datasource.getShapeById
and then you will have all the details for the shape in question and can create the experience you want, such as displaying a popup or some other workflow.