To be more descriptive here's a live开发者_JAVA百科 example: http://interklub.biz/CTPonLine.html
In last column there's a ComboBox with some values. When user choose an option in ComboBox from first row and then scroll down the first choice disapears (comes back to default state). There's something more strange, earlier I've tried to apply a one more ComboBox in additional column, with highly dynamic values (completly different for different rows), but with after same action (scroll down and then scroll down) values dataProviders from different ComboBox were switch.
It looks like you're not initializing your item renderer properly--when the renderer is reused, it's keeping its old value rather than updating from your data.
You should be able to resolve this by doing one of the following:
- binding the item renderer's
selectedValue
to some property of itsdata
element- overriding
set data()
to update the control for the current data - acting on the dataChange event and updating there
- overriding
See Adobe's Working with Item Renderers for more.
精彩评论