Flex DataGrid with ComboBox itemRenderer

后端 未结 3 802
轻奢々
轻奢々 2021-02-04 14:12

I\'m going spare trying to figure out the \"correct\" way to embed a ComboBox inside a Flex (3.4) DataGrid. By Rights (e.g. according to this page http://blog.flexmonkeypatches.

3条回答
  •  长情又很酷
    2021-02-04 14:16

    In my case I used a spark datagrid where one of the columns has an ItemRenderer that utilises a DropDownListBox. My problem was that when my item list change, the DropDownLists doesn't get updated with the new dataProvider. To solve this, I had to pass the dataProvider for the DropDownListBox as part of the data (of the ItemRenderer), and then by overriding the setter of the data to just assign the DropDownlListBox's dataProvider. Probably a bit of overhead, but if someone have a better solution, please let me know:

    
    
        
    
    
    

提交回复
热议问题