Without reviewing your code; it sounds like your itemRenderer is not
properly updating. You need to either override the set data method or
add an event listener for the dataChange event and then change the
checkbox state inside that. My preference is to add an event listener
for the dataChange event [but it doesn't matter which you choose].
I wrote a few blog posts on creating mobile itemRenderers:
https://www.flextras.com/blog/index.cfm/2011/6/23/Understanding-Mobile-itemRenderers
https://www.flextras.com/blog/index.cfm/2011/6/24/Building-a-Mobile-ItemRenderer-in-Flex
I also built a CheckboxItemRenderer here:
https://github.com/Flextras/FlextrasComponents/blob/master/autoCompleteComboBox/Spark/spark/flextras/autoCompleteMultiSelect/renderers/CheckboxAutoCompleteRenderer.as
And a Mobile Optimized Radio Button Renderer here:
https://github.com/Flextras/FlextrasComponents/blob/master/mobileComponents/com/flextras/mobile/shared/renderers/RadioButtonRenderer.as
Perhaps one of those two can be used as a guide for modifying your own.
On 12/14/2014 4:24 PM, Burhan Aksendir wrote:
When I mark an item in the list and then scroll down the screen, some other
items automatically marked although I do not want to.
How can I fix this?
My List View <https://gist.github.com/burhanaksendir/8544fbe00598a1e8d7a4>
My IconItemRenderer
<https://gist.github.com/burhanaksendir/4832b818cd1a08181220>
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Flex-Mobile-Spark-list-iconitemrenderer-checkbox-issue-tp9160.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
--
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773