incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dany Dhondt <archeme...@mac.com>
Subject Re: combo box
Date Tue, 10 Apr 2012 18:59:45 GMT
Hi,

Now there's a discussion about the comboBox, I'd like to address an issue. Sorry in advance
if it had been addressed already.

Using the component, one can set the selectedIndex or the selectedItem properties. There's
no way to set a 'selectedValue' property.
I've solved this by using a custom component based on what I found here.
The issue is that when you have a dataProvider with a collection of objects, you should be
able to set the selectedItem of the combobox based on one of the attributes of the object.
When the object has a property named 'customObjectID', one should be able to set the comboBox
'valueField' to 'customObjectID' and then set the selectedValue property to whatever value
the object's customObjectID is.
Is there a possibility to add this feature to ComboBox?

-Dany

Op 10-apr.-2012, om 20:27 heeft Alex Harui het volgende geschreven:

> 
> 
> 
> On 4/10/12 10:59 AM, "David Coleman" <david_coleman_007@hotmail.com> wrote:
> 
>> 
>> Wow, what a great idea... maybe we can merge both of our ideas into a single
>> better component!
>> 
> Possibly.  In theory, you can grab code off my blog and just use it,
> although the licensing is not explicit.  I've been planning to get a ruling
> from Adobe legal later after we get past the other issues.
> 
> In the meantime, there can be an discussion as to whether there should be a
> different flavor of Combobox for this case as you proposed or whether it is
> good enough to simply use custom data providers, or even whether ComboBox
> should be enhanced to handle this scenario.
> 
> -- 
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message