| Jon Rose’s Blog | | Enterprise Software Consultant Open Source / Java / Flex Flex Practice Director @ Gorilla Logic, Inc. InfoQ.com RIA Editor |
![]() |
Comments:
Jon Rose’s Blog » Blog Archive » Life with Flex on June 30th, 2008 at 12:02 am #
[...] Life with Flex: Components (Monday – 6/30) [...]
Stu Stern on July 19th, 2008 at 1:15 pm #
After doing a fair amount of battle with Flex components, it’s become clear to me that trafficking in anything other than Strings should be avoided. Specifically, when using a ComboBox as an itemEditor in a DataGrid life is much simpler when the dataProvider for the ComboBox consists simply of Strings. We had originally bound the ComboBox’s dataProvider to an ArrayCollection of objects and used the “labelField” property to specify which value should appear in the list. Surprisingly this entails all kinds of weird voodoo coordinating values between the itemRenderer and itemEditor. Assuming the “values” property below returns nothing but an Array or ArrayCollection of Strings, the following works as expected: Note that setting editorDataField=”selectedItem” is a critical piece of voodoo in the above. Post a comment
|
|