Override the combobox class in a custom component and add the following code
-

private var mDropDown:ListBase;
override public function set dataProvider(value:Object):void
  {
    super.dataProvider = value;
   //Bug in Flex SDK 3.5: Once the data provider is set and list base is
created
   //change in dataProvider does not reflect change in shared dataProvider
of listbase
   mDropDown = dropdown;
        if(mDropDown)
        {
         validateSize(true);
         mDropDown.dataProvider = super.dataProvider;
         if(isNaN(preferredDropDownWidth))
          mDropDown.width = width;
         else
          mDropDown.width = preferredDropDownWidth;
        }
  }

~Peeyush
http://www.metadesignsolutions.com

On Sat, Apr 3, 2010 at 10:33 PM, ArunKumar Madas <[email protected]>wrote:

>
>
> Any one has a quick workaround for this sdk 3.5 bug.
>
> http://forums.adobe.com/message/2642802
>
> It is also seen when you just pop-up a title window containing a Combobox
> and try to change the dataprovider (doesnt get refreshed until you try to
> click one of the items).
>
>
>  
>

Reply via email to