Thanks Peeyush. That helps.
We have <mx:Combobox /> referred everywhere across our code and changing all
the instances is a bigger change. I guess, for this very reason creating a
an extended base components one time and using with custom namespace across
the app is a good idea.
We just turned back to 3.4 (as we cannot rely on the nightly 3.6 builds),
now that we are just a build away from going live.

Thanks again,
~ Arun

On Mon, Apr 5, 2010 at 2:15 AM, Peeyush Tuli <[email protected]> wrote:

>
>
> 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