Hello all,
I'm really lost at this moment. I've got a collection with people which I display in a ListView. I want to add a Picker with ratings to each ListItem, but it has to be able to do the following stuff: - onChange: I need the ID of the person (it's included in the row) - when filling the Picker, set the selected value if there is one, the person has a ratingID
My problem is: I am not able to create unique pickers in each row.
I've searched for everywhere for a solution. If anyone has any suggestion to get this functionality to work, I'd be most grateful!
Here's what I have, I can't fill or manipulate the Picker this way:
<Templates> <!-- Defining the item templates --> <ItemTemplate name="default" onClick="itemClicked"> <Label bindId="name" id="title" /> <Picker bubbleParent="true" id="ratingPicker"></Picker> </ItemTemplate> </Templates> <ListSection dataCollection="person" dataTransform="doTransform"> <HeaderView> <View backgroundColor="#DDD" height="25dp"> <Label class="first">Naam</Label> <Label class="second">Beoordeling</Label> </View> </HeaderView> <ListItem class="row" name:text="{name}"/> </ListSection>Thanks in advance!
- Jason