12-30-2013 12:55 PM
I am really having trouble with List Items. I have my own custom list item. and it really behaves terrible. especially when new data comes in, the ListItemData behaves really bad for each list item. also when you scroll and scroll list item changes. is this a caching issue? I really need a solution I have tried everything like removing all items in the list and data source then reload and still the same. Please..
12-30-2013 12:57 PM
12-30-2013 09:35 PM - edited 12-30-2013 10:09 PM
I am very sorry I clicked the wrong Accept as Solution button isntead of reply.
Here's Custom ListItem
Here's My Page with the ListView
The image view there is the one really terrible.
Also how can I modify the datamodel inside the custom listitem? or even outside?
I will also try your suggestions to bind them in the ListItemData instead of local variables,
12-30-2013 10:53 PM - edited 12-30-2013 11:02 PM
I tried changing a ListItemData.property value and doesn't change.
ListItemData.status = 2;
console.log("LIST ITEM STATUS: " + ListItemData.status);
and still outputs a different value.
Similar Problem and solved here http://supportforums.blackberry.com/t5/Native-Deve
I will try.
12-31-2013 05:05 AM - edited 12-31-2013 05:19 AM
This often confuses the first-timer but the ListView is just for displaying data, changes must be done to the source data.
Take a look at this for a more thorough explanation...
This may also be useful...
01-01-2014 12:09 AM
I've resolved my problem with modifying the data source directly. But would be really nice if we don't have to modify it and just modify the contents inside the list item. thanks so much everyone!
01-01-2014 05:01 AM
It just doesn't work that way in modern methodologies any more, this way to do it is common across most platforms now.
To not do it this way would risk the data and the view becoming unsynchronised.