开发者

Flex ComboBox user choice reset

开发者 https://www.devze.com 2022-12-20 02:44 出处:网络
To be more descriptive here\'s a live开发者_JAVA百科 example: http://interklub.biz/CTPonLine.html

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:

  1. binding the item renderer's selectedValue to some property of its data element
    • overriding set data() to update the control for the current data
    • acting on the dataChange event and updating there

See Adobe's Working with Item Renderers for more.

0

精彩评论

暂无评论...
验证码 换一张
取 消