actionscript 3 - Check boxes weird behavior in AS3 datagrid -


i have column checkbox .. if scroll down while having checked , unchecked , check boxes start check , unchecked randomly .. tried change them button labeled checked , unchecked still same issue. please.

assuming you're using itemrenderer, due default itemrenderer behavior in flex. player calculates how many items display @ once on screen (say, 10), , creates number of instances plus buffer instance top , bottom of list. when scroll through list, player reuses existing instances, setting values on instance properties in data source.

to fix this, have check box set boolean value in data source. in setter method in item renderer itself, check value , set checkbox accordingly.

adobe developer connection has series of articles itemrenderers if want learn more.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -