06-24-2012 10:28 AM
It seems as if the value of ListItemData in the context of onCreationCompleted is not properly set to each item. I get the same item repeatedly as onCreationCompleted is fired again and again for the different items created.
This can easily be demonstrated in the CascadesCookbook sample application. Simply add these lines to the end of RecipeItem.qml and you'll see what I mean:
console.log("RecipeItem onCreationCompleted " + ListItemData.title);
If anyone has comments on this I'd be most appreciative. I'll be happy to enter this as a bug in the Issue Tracker, but wanted to check on the forum first, in case someone spots I'm doing something wrong.
Solved! Go to Solution.
06-24-2012 11:16 AM
I discovered that I can use ListItem.onInitializedChanged to be notified when the item visual has been created and propely initialized. In this context the ListItemData has the correct value.